/* AI Health Check Module Styling */

/* Override body overflow for AI Check page */
body {
    overflow: hidden;
    height: 100vh;
}

/* Hide header on AI Check page for full screen experience */
header.sticky-top {
    position: relative;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease, margin-left 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    margin-top: 16px;
}

.aicheck-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 244, 255, 0.85) 100%);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 2px 0 16px rgba(31, 75, 115, 0.08);
}

body.dark-mode .aicheck-panel {
    background: linear-gradient(135deg, rgba(38, 42, 50, 0.95) 0%, rgba(30, 34, 42, 0.95) 100%);
    border-right-color: #374151;
}

body.dark-mode .sidebar {
    background: #32317c;
    border-right-color: #374151;
}

.aicheck-chat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 245, 255, 0.9) 100%) !important;
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.dark-mode .aicheck-chat {
    background: linear-gradient(135deg, rgba(32, 36, 44, 0.95) 0%, rgba(26, 30, 38, 0.95) 100%) !important;
}

.sidebar.collapsed {
    transform: translateX(-100%);
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% - 16px);
    z-index: 100;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.toggle-sidebar {
    display: none;
    position: fixed;
    left: 16px;
    bottom: 20px;
    z-index: 101;
    background: white;
    border: 1.5px solid #e5e7eb;
    color: #4a4a5e;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

body.dark-mode .toggle-sidebar {
    background: #2d3748;
    border-color: #4b5563;
    color: #e2e8f0;
}

.toggle-sidebar:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

body.dark-mode .toggle-sidebar:hover {
    background: #374151;
    border-color: #6b7280;
}

.toggle-sidebar:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        height: calc(100% - 16px);
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .toggle-sidebar {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}
