* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.header h1 i {
    margin-right: 0.5rem;
    color: #3498db;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info i {
    font-size: 1.5rem;
    color: #3498db;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    width: 250px;
    background: white;
    border-right: 1px solid #e0e6ed;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
    border-left-color: #3498db;
}

.sidebar li.active a {
    background-color: #e3f2fd;
    color: #2c3e50;
    border-left-color: #3498db;
    font-weight: 600;
}

.sidebar a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e6ed;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-icon.humo {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-icon.uzcard {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-icon.munis {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-icon.errors {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-icon.processing {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-icon.performance {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.stat-info h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.stat-number.error-count {
    color: #e74c3c;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.stat-details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f2f6;
}

.stat-details small {
    color: #95a5a6;
    font-size: 0.8rem;
}

.dashboard-metrics {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.metrics-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
}

.section-title h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title i {
    color: #3498db;
}

/* System Metrics Styles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.metric-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-card h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-bar {
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-fill.cpu {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.metric-fill.ram {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.metric-fill.disk {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.metric-fill.network {
    background: linear-gradient(90deg, #27ae60, #229954);
}

.metric-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: right;
}

/* Processing Volume Styles */
.volume-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.volume-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.volume-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.volume-value {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1rem;
}

.volume-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem 0;
    flex: 1;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.breakdown-system {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.breakdown-system.humo {
    background: #e74c3c;
}

.breakdown-system.uzcard {
    background: #3498db;
}

.breakdown-system.munis {
    background: #27ae60;
}

.breakdown-value {
    font-weight: 600;
    color: #2c3e50;
}

.volume-summary {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e6ed;
    font-size: 0.85rem;
    color: #7f8c8d;
    flex-shrink: 0;
}

/* Trends Section */
.comparison-trends {
    border-left-color: #f39c12 !important;
}

.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.5rem 0;
    flex: 1;
}

.trend-item {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
}

.trend-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.trend-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.trend-value.success {
    color: #27ae60;
}

.trend-value.warning {
    color: #f39c12;
}

.trend-value.info {
    color: #3498db;
}

.trend-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.trend-change.positive {
    color: #27ae60;
}

.trend-change.negative {
    color: #e74c3c;
}

/* Performance Metrics */
.performance-metrics {
    border-left-color: #9b59b6 !important;
}

.hourly-stats {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0;
    flex: 1;
}

.hourly-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hour-range {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 90px;
    font-family: monospace;
}

.hour-bar {
    flex: 1;
    height: 12px;
    background: #e0e6ed;
    border-radius: 6px;
    overflow: hidden;
}

.hour-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.hour-fill.peak {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.hour-fill.high {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.hour-fill.medium {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.hour-fill.low {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}

.hour-volume {
    font-weight: 600;
    color: #2c3e50;
    min-width: 50px;
    text-align: right;
    font-size: 0.9rem;
}

/* Error Analytics */
.error-analytics {
    border-left-color: #e74c3c !important;
}

.error-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.5rem 0;
    flex: 1;
}

.error-category {
    background: white;
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #e0e6ed;
}

.error-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.error-type {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.error-count {
    font-weight: bold;
    font-size: 0.9rem;
}

.error-count.critical {
    color: #e74c3c;
}

.error-count.warning {
    color: #f39c12;
}

.error-count.minor {
    color: #95a5a6;
}

.error-progress {
    height: 6px;
    background: #f1f2f6;
    border-radius: 3px;
    overflow: hidden;
}

.error-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.error-bar.critical {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.error-bar.warning {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.error-bar.minor {
    background: linear-gradient(90deg, #95a5a6, #7f8c8d);
}


/* File Status Grid */
.file-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.status-item:hover {
    transform: translateY(-2px);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.status-icon.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.status-icon.processing {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.status-icon.completed {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.status-icon.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.status-info {
    display: flex;
    flex-direction: column;
}

.status-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.status-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-top: 2rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
}

.activity-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activity-header i {
    color: #3498db;
}

/* Timeline Styles */
.activity-timeline {
    position: relative;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 70px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e6ed;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-time {
    font-family: monospace;
    font-weight: bold;
    color: #7f8c8d;
    font-size: 0.9rem;
    width: 60px;
    flex-shrink: 0;
    text-align: right;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.timeline-icon.success {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.timeline-icon.processing {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.timeline-icon.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.timeline-icon.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.timeline-content {
    flex: 1;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.timeline-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-details {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.meta-badge.success {
    background: #d4edda;
    color: #155724;
}

.meta-badge.processing {
    background: #e3f2fd;
    color: #1976d2;
}

.meta-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.meta-badge.error {
    background: #f8d7da;
    color: #721c24;
}

.meta-time {
    font-size: 0.8rem;
    color: #95a5a6;
    font-style: italic;
}

/* Quick Actions Panel */
.quick-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e6ed;
}

.actions-title h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actions-title i {
    color: #f39c12;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    background: white;
    border: 2px solid #e0e6ed;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
}

.action-btn:hover {
    border-color: #3498db;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.action-btn i {
    font-size: 1.5rem;
    color: #3498db;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ABS Transaction Section Styles */
.abs-connection-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 8px;
    font-size: 0.9rem;
}

.abs-connection-status span {
    font-weight: 600;
    color: #27ae60;
}

.abs-connection-status small {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-left: auto;
}

/* ABS Statistics Grid */
.abs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.abs-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.abs-stat-card:hover {
    transform: translateY(-2px);
}

.abs-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.abs-stat-icon.transmitted {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.abs-stat-icon.processing {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.abs-stat-icon.confirmed {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.abs-stat-icon.failed {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.abs-stat-info h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.abs-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.abs-stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.abs-stat-details {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f2f6;
}

.abs-stat-details small {
    color: #95a5a6;
    font-size: 0.8rem;
}

/* Transmission Status */
.transmission-status {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
}

.status-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.transmission-controls {
    display: flex;
    gap: 0.5rem;
}

.transmission-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.channel-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.channel-name {
    font-weight: 600;
    color: #2c3e50;
}

.channel-status.active {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.channel-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.metric-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.channel-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.channel-progress small {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: center;
}

/* Transmission History */
.transmission-history {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    overflow: hidden;
}

.history-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.history-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.history-table-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.transmission-table {
    width: 100%;
    min-width: 1000px;
}

.abs-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.abs-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.abs-status.processing {
    background: #e3f2fd;
    color: #1976d2;
}

.abs-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* ABS Monitoring */
.abs-monitoring {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 1.5rem;
}

.monitoring-header h3 {
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e6ed;
}

.abs-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.abs-metric-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.abs-metric-item .metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.abs-metric-item .metric-data {
    flex: 1;
}

.abs-metric-item .metric-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.abs-metric-item .metric-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1;
}

.recent-activity h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6ed;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: #27ae60;
}

.activity-icon.warning {
    background: #f39c12;
}

.activity-icon.error {
    background: #e74c3c;
}

.activity-details p {
    margin: 0;
}

.activity-time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.upload-header {
    padding: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.upload-header.humo {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.upload-header.uzcard {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.upload-header.munis {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.upload-area {
    padding: 2rem;
}

.upload-content {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-content:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.upload-content i {
    font-size: 2rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.upload-content p {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.upload-content small {
    color: #7f8c8d;
}

.upload-status {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e6ed;
    min-height: 60px;
}

.monitoring-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.monitoring-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #e8f5e8;
    border: 1px solid #27ae60;
    border-radius: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bdc3c7;
}

.status-dot.active {
    background: #27ae60;
    animation: pulse-dot 2s infinite;
}

.monitoring-status-text {
    font-weight: 600;
    color: #27ae60;
}

.monitoring-status-indicator small {
    color: #7f8c8d;
    font-size: 0.8rem;
}

@keyframes pulse-dot {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.auto-process-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-process-toggle label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.auto-process-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #27ae60;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.connection-status {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.connection-status h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6ed;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.connection-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #3498db;
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.connection-header.humo {
    color: #e74c3c;
}

.connection-header.uzcard {
    color: #3498db;
}

.connection-header.munis {
    color: #27ae60;
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.connection-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #ccc;
}

.connection-indicator.online {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}

.connection-indicator.offline {
    background: #e74c3c;
    box-shadow: 0 0 0 2px #e74c3c;
}

.connection-indicator.warning {
    background: #f39c12;
    box-shadow: 0 0 0 2px #f39c12;
}

.connection-text {
    font-weight: 600;
    color: #2c3e50;
}

.connection-info small {
    color: #7f8c8d;
    font-size: 0.8rem;
    font-family: monospace;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: auto;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.monitoring-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.monitoring-header {
    padding: 0.5rem 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.monitoring-header.humo {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.monitoring-header.uzcard {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.monitoring-header.munis {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.monitoring-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.file-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.latest-file {
    margin-bottom: 1.5rem;
    flex: 1;
}

.latest-file h4 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.file-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 3px solid #3498db;
}

.file-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-all;
}

.file-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.processing-stats {
    border-top: 1px solid #e0e6ed;
    padding-top: 1rem;
    margin-top: auto;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-row span:first-child {
    color: #7f8c8d;
}

.stat-row strong {
    color: #2c3e50;
}

.file-queue {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.queue-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-header h3 {
    color: #2c3e50;
    margin: 0;
}

.queue-controls {
    display: flex;
    gap: 0.5rem;
}

.queue-table-container {
    overflow-x: auto;
}

.empty-queue {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem !important;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #e0e6ed;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.monitoring-active .monitoring-status {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.system-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.system-badge.humo {
    background: #e74c3c;
}

.system-badge.uzcard {
    background: #3498db;
}

.system-badge.munis {
    background: #27ae60;
}

.status.info {
    background: #e3f2fd;
    color: #1976d2;
}

/* File Queue Styles */
.queue-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-value.processing {
    color: #3498db;
}

.stat-value.error {
    color: #e74c3c;
}

.queue-controls-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.action-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detailed-queue {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.queue-stats-bar {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

.progress-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.progress-label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    min-width: 80px;
}

.mini-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e6ed;
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mini-progress-fill.pending {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.mini-progress-fill.processing {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.mini-progress-fill.completed {
    background: linear-gradient(90deg, #27ae60, #229954);
}

.mini-progress-fill.error {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.progress-count {
    font-weight: bold;
    color: #2c3e50;
    min-width: 30px;
    text-align: right;
}

.queue-table-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.detailed-queue-table {
    width: 100%;
    min-width: 1200px;
}

.detailed-queue-table th:first-child {
    width: 40px;
    text-align: center;
}

.bulk-actions {
    padding: 1rem 1.5rem;
    background: #e3f2fd;
    border-top: 1px solid #90caf9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-info {
    font-weight: 600;
    color: #1976d2;
}

.bulk-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Comparison Results Enhanced Styles */
.comparison-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    border-left: 4px solid #3498db;
}

.summary-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
}

.summary-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.summary-stats {
    padding: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f2f6;
}

.stat-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stat-item .stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.stat-item .stat-value {
    font-weight: bold;
    font-size: 1rem;
}

.stat-item .stat-value.success {
    color: #27ae60;
}

.stat-item .stat-value.error {
    color: #e74c3c;
}

.stat-item .stat-value.warning {
    color: #f39c12;
}

.processing-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.info-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-header h4 {
    margin: 0;
    font-size: 1rem;
}

.info-content {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f2f6;
}

.info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    font-family: monospace;
}

.export-actions {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-header h4 {
    color: #2c3e50;
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

.amount {
    text-align: right;
    font-family: monospace;
    font-weight: 600;
}

.amount.missing {
    color: #e74c3c;
    font-style: italic;
}

.difference {
    text-align: right;
    font-family: monospace;
    font-weight: bold;
}

.difference.negative {
    color: #e74c3c;
}

.difference.positive {
    color: #27ae60;
}

.priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority.high {
    background: #ffeaa7;
    color: #d63031;
}

.priority.medium {
    background: #fab1a0;
    color: #e17055;
}

.priority.low {
    background: #e17055;
    color: #636e72;
}

.comparison-history {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-top: 2rem;
}

.history-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-header h4 {
    color: #2c3e50;
    margin: 0;
}

.history-list {
    padding: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f2f6;
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: #f8f9fa;
}

.history-item:last-child {
    border-bottom: none;
}

.history-time {
    font-family: monospace;
    font-weight: bold;
    color: #7f8c8d;
    width: 80px;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    margin-left: 1rem;
}

.history-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.history-details {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.history-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.history-status.success {
    background: #d4edda;
    color: #155724;
}

/* Enhanced Queue Styles */
.transaction-count {
    font-family: monospace;
    font-weight: bold;
    color: #2c3e50;
}

.transaction-count.processing {
    color: #3498db;
}

.transaction-count.error {
    color: #e74c3c;
}

.error-info {
    text-align: center;
    font-size: 0.9rem;
}

.error-badge {
    background: #e74c3c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-fill.error-fill {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.btn-small.error {
    background: #e74c3c;
}

.btn-small.error:hover {
    background: #c0392b;
}

.priority.low {
    background: #ddd;
    color: #666;
}

.process-button-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.btn-small {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-small:hover {
    background: #2980b9;
}

.comparison-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.control-group select,
.control-group input {
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 150px;
}

.comparison-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}

.results-summary {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e6ed;
    display: flex;
    gap: 2rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.summary-item.success {
    color: #27ae60;
}

.summary-item.error {
    color: #e74c3c;
}

.differences-table {
    padding: 1.5rem;
}

.differences-table h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e6ed;
}

.data-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

.difference {
    font-weight: bold;
}

.difference:contains('-') {
    color: #e74c3c;
}

.difference:contains('+') {
    color: #27ae60;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.status.warning {
    background: #fff3cd;
    color: #856404;
}

.transaction-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.transaction-queue {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
}

.transaction-queue h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.queue-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.queue-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.transaction-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.transaction-log {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.transaction-log h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.report-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 150px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    border-left: 4px solid #3498db;
}

.report-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e6ed;
}

.report-content {
    margin-bottom: 1.5rem;
}

.report-content p {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #2c3e50;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-controls,
    .transaction-controls,
    .report-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .queue-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .file-status-grid {
        grid-template-columns: 1fr;
    }
    
    .volume-header,
    .volume-summary {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .breakdown-item {
        font-size: 0.8rem;
    }
    
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
    
    .volume-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .volume-item {
        min-height: auto;
        padding: 0.75rem;
    }
    
    .trends-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .trend-item {
        padding: 0.5rem;
    }
    
    .hourly-stats {
        gap: 0.5rem;
    }
    
    .error-breakdown {
        gap: 0.5rem;
    }
    
    .monitoring-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .monitoring-card {
        min-height: 250px;
    }
    
    .file-info {
        padding: 1rem;
    }
    
    .file-details {
        padding: 1rem;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}