/* Dashboard Styles - Matching the provided design */
.dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 16px;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dashboard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.last-update {
    font-size: 0.9rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 500;
}

.auto-refresh i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Summary Cards */
.summary-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.summary-card.online .summary-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.summary-card.offline .summary-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.summary-card.problems .summary-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.summary-card.response-time .summary-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

/* Services Section */
.services-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.services-header {
    margin-bottom: 32px;
}

.services-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-outline-light {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background: #e5e7eb;
    color: #374151;
}

.form-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #374151;
    width: auto;
    min-width: 150px;
}

/* Service Cards */
.service-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card.online {
    border-left: 4px solid #10b981;
}

.service-card.offline {
    border-left: 4px solid #ef4444;
}

.service-header {
    margin-bottom: 16px;
}

.service-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
}

.service-card.offline .service-indicator {
    background: #ef4444;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 8px 0;
}

.service-url {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.service-status-badge {
    margin-bottom: 20px;
}

.status-online {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-offline {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex: 1;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.service-last-check {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    text-align: center;
}

.last-check-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.last-check-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.service-no-data {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* Mobile List View Styles */
.service-list-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.service-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-list-item.online {
    border-left: 4px solid #10b981;
}

.service-list-item.offline {
    border-left: 4px solid #ef4444;
}

.service-list-content {
    width: 100%;
}

.service-list-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.service-list-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-top: 6px;
    flex-shrink: 0;
}

.service-list-item.offline .service-list-indicator {
    background: #ef4444;
}

.service-list-info {
    flex: 1;
    min-width: 0;
}

.service-list-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.service-list-url {
    font-size: 0.9rem;
    color: #6b7280;
    word-break: break-all;
}

.service-list-status {
    flex-shrink: 0;
}

.service-list-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

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

.metric-item .metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 2px;
}

.metric-item .metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: capitalize;
    font-weight: 500;
}

.service-list-no-data {
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .dashboard-header {
        padding: 20px;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .dashboard-meta {
        align-items: flex-start;
        margin-top: 16px;
    }
    
    .services-section {
        padding: 20px;
    }
    
    .services-header .row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .view-controls {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .service-list-metrics {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .metric-item {
        min-width: 70px;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .summary-card {
        padding: 20px;
        gap: 16px;
    }
    
    .summary-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .summary-number {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-metrics {
        flex-direction: column;
        gap: 16px;
    }
    
    .metric {
        text-align: left;
    }
}