/* Admin Dashboard Styles */
.admin-container {
    background: #0b0b0f;
    min-height: 100vh;
    padding: 2rem;
}

.admin-header {
    background: rgba(15, 15, 17, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.admin-logo {
    color: #4ECDC4;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-nav a {
    color: #e6e6e6;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav a:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    transform: translateY(-1px);
}

.content-container {
    background: rgba(15, 15, 17, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    backdrop-filter: blur(8px);
}

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

.page-title {
    color: #4ECDC4;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
}

.btn-secondary {
    background: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
}

.btn-secondary:hover {
    background: rgba(78, 205, 196, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #e6e6e6;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 8px;
    background: rgba(15, 15, 17, 0.8);
    color: #e6e6e6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-control::placeholder {
    color: #a0a0a0;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Object Grid Styles */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.object-card {
    background: rgba(26, 26, 46, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.object-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
    text-decoration: none;
    color: inherit;
}

.object-title {
    color: #e6e6e6;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.object-meta {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.object-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Detail Card Styles */
.detail-card {
    background: rgba(26, 26, 46, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    margin-bottom: 2rem;
}

.detail-title {
    color: #4ECDC4;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.detail-field {
    margin-bottom: 1rem;
}

.detail-label {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #e6e6e6;
    font-size: 1rem;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #a0a0a0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4ECDC4;
}

.empty-state h3 {
    color: #e6e6e6;
    margin-bottom: 1rem;
}

/* Messages */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.3);
    color: #17a2b8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-card {
    background: rgba(26, 26, 46, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #4ECDC4;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    color: #4ECDC4;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #e6e6e6;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav {
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .objects-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-nav a {
        text-align: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Custom Admin Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b0b0f 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Inter', sans-serif;
    color: #e6e6e6;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.login-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 400;
}

.login-form {
    background: rgba(26, 26, 46, 0.8);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.2);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #e6e6e6;
    font-size: 1rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #4ECDC4;
    font-size: 1.1rem;
    z-index: 2;
}

.input-icon input[type="text"],
.input-icon input[type="password"] {
    width: 100%;
    padding: 1rem 1rem 1rem 50px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    background: rgba(15, 15, 17, 0.8);
    color: #e6e6e6;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.input-icon input[type="text"]:focus,
.input-icon input[type="password"]:focus {
    border-color: #4ECDC4;
    outline: none;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
    background: rgba(15, 15, 17, 0.9);
}

.input-icon input[type="text"]::placeholder,
.input-icon input[type="password"]::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
}

.login-button:hover {
    background: linear-gradient(135deg, #44A08D 0%, #4ECDC4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-link:hover {
    color: #44A08D;
    transform: translateX(-2px);
}

.errorlist {
    color: #ff6b6b;
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

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

/* Responsive adjustments for login */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-title {
        font-size: 2.5rem;
    }

    .login-form {
        padding: 2rem;
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* Authentication Required Styles */
.auth-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-message {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    max-width: 500px;
    width: 100%;
}

.auth-message i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.auth-message h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-message p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-message .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Enhanced KPI Styles for Health Dashboard */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.kpi-card.healthy {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.kpi-card.warning {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.kpi-card.critical {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.kpi-card.info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.kpi-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    display: none;
}

.kpi-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-status.healthy {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.kpi-status.warning {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.kpi-status.critical {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.kpi-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kpi-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.kpi-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
    animation: pulse 2s infinite;
    display: none;
}

.kpi-card.loading {
    position: relative;
    overflow: hidden;
}

.kpi-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.kpi-value:hover {
    transform: scale(1.05);
}

/* Enhanced Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.metric-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.metric-card h3 i {
    font-size: 1.5rem;
    color: #667eea;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.metric-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(4px);
}

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

.metric-item span:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.95rem;
}

.metric-item span:first-child i {
    font-size: 1.1rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.metric-item span:last-child {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.highlight {
    color: #e74c3c !important;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.warning {
    color: #dc3545 !important;
    font-weight: bold;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.error {
    color: #e74c3c !important;
    font-weight: bold;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.success {
    color: #27ae60 !important;
    font-weight: bold;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* Enhanced Status Overview */
.status-overview {
    margin-bottom: 2rem;
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.status-card.status-healthy::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.status-card.status-warning::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.status-card.status-critical::before {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.status-card.status-down::before {
    background: linear-gradient(90deg, #6c757d, #495057);
}

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

.status-indicator {
    font-size: 3rem;
    font-weight: bold;
    color: #28a745;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-indicator.status-healthy { color: #28a745; }
.status-indicator.status-warning { color: #dc3545; }
.status-indicator.status-critical { color: #dc3545; }
.status-indicator.status-down { color: #6c757d; }

.status-message {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* Enhanced Health Sections */
.health-section, .backup-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.health-section::before, .backup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

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

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

.section-header h3 i {
    font-size: 1.5rem;
    color: #667eea;
}

.view-all-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* Collapsible Health Checks */
.health-checks-collapsible {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.health-check-group {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.health-check-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.health-check-group-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateX(4px);
}

.check-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.check-time i {
    color: #667eea;
}

.check-count {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
}

.check-arrow i {
    color: #667eea;
    transition: transform 0.3s ease;
}

.health-check-group-content {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Component KPI Grid */
.component-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.component-kpi-card {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border: 2px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.component-kpi-card.status-healthy {
    border-left: 3px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, rgba(32, 201, 151, 0.03) 100%);
}

.component-kpi-card.status-warning {
    border-left: 3px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.03) 0%, rgba(253, 126, 20, 0.03) 100%);
}

.component-kpi-card.status-critical {
    border-left: 3px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, rgba(232, 62, 140, 0.03) 100%);
}

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

.component-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #667eea;
}

.component-kpi-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-kpi-badge.status-healthy {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.component-kpi-badge.status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.component-kpi-badge.status-critical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.component-kpi-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.component-message {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.component-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
}

/* Health Cards Grid */
.health-cards-grid, .backup-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.health-card, .backup-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.health-card:hover, .backup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.health-card.status-healthy {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(32, 201, 151, 0.02) 100%);
}

.health-card.status-warning {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%);
    color: #dc3545;
}

.health-card.status-critical {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02) 0%, rgba(232, 62, 140, 0.02) 100%);
}

.backup-card.status-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.02) 0%, rgba(32, 201, 151, 0.02) 100%);
}

.backup-card.status-failed {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.02) 0%, rgba(232, 62, 140, 0.02) 100%);
}

.backup-card.status-in_progress {
    border-left: 4px solid #007bff;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
}

/* Health Card Header */
.health-card-header, .backup-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.health-icon-wrapper, .backup-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-icon, .backup-icon {
    font-size: 1.5rem;
}

.health-status-badge, .backup-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-status-badge.status-healthy, .backup-status-badge.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.health-status-badge.status-warning {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.health-status-badge.status-critical, .backup-status-badge.status-failed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.backup-status-badge.status-in_progress {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Health Card Content */
.health-card-content, .backup-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.health-component, .backup-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.health-message, .backup-name {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

.health-response-time, .health-timestamp, .backup-timestamp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #adb5bd;
}

.health-response-time i, .health-timestamp i, .backup-timestamp i {
    font-size: 0.9rem;
}

.health-response-time.status-critical {
    color: #dc3545;
}

.backup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.backup-type, .backup-size, .backup-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.backup-type i, .backup-size i, .backup-duration i {
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 12px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.health-list, .backup-list {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,0.05);
}

.health-item, .backup-item {
    display: grid;
    grid-template-columns: 120px 150px 100px 1fr 80px;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.health-item:last-child, .backup-item:last-child {
    margin-bottom: 0;
}

/* Backup List Grid */
.backup-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.backup-item-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.backup-item-card.status-success {
    border-left: 4px solid #28a745;
}

.backup-item-card.status-failed {
    border-left: 4px solid #dc3545;
}

.backup-item-card.status-in_progress {
    border-left: 4px solid #007bff;
}

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

.backup-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.backup-item-icon.status-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.backup-item-icon.status-failed {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.backup-item-icon.status-in_progress {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.backup-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.backup-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.backup-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.backup-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.backup-meta-item i {
    font-size: 0.75rem;
}

.backup-error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.backup-error-message i {
    margin-right: 0.25rem;
}

.health-item:hover, .backup-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.timestamp {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.component, .name {
    font-weight: 600;
    color: #495057;
}

.status-healthy {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.status-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(253, 126, 20, 0.1) 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.status-critical, .status-failed {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(232, 62, 140, 0.1) 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.status-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.status-in_progress {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    color: #004085;
    border-left: 4px solid #007bff;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-style: italic;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    color: #adb5bd;
}

/* Enhanced Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.response-time, .duration, .size {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    background: rgba(108, 117, 125, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .health-item, .backup-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .health-item > *, .backup-item > * {
        margin-bottom: 0.5rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .status-card {
        padding: 2rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .kpi-card {
        padding: 1.5rem;
    }
    
    .kpi-value {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
