/* assets/css/style.css - "AbhIT Pro" Edition (Animated) */

/* 1. BRAND COLORS */
:root {
    --brand-dark: #2A1B4A;
    --brand-main: #5E3B96;
    --brand-light: #9D84D3;
    --bg-black: #050505;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --glass-border: rgba(157, 132, 211, 0.2);
}

/* 2. RESET & LAYOUT */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    background-color: var(--bg-black);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

/* NEW: Custom Text Selection Color */
::selection {
    background: var(--brand-light); /* Purple Highlight */
    color: #fff;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #0f0f0f;
    border-right: 1px solid var(--glass-border);
    z-index: 1050;
    overflow-y: auto;
    padding-bottom: 50px;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #1a102e 0%, #000000 60%);
}

/* NEW: Page Fade-In Animation */
.container-fluid {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0; /* Start hidden */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; }
}

/* 3. NAVIGATION */
.nav-link {
    color: var(--text-gray) !important;
    padding: 12px 15px;
    margin: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    padding-left: 20px;
}
.nav-link.active {
    background: rgba(94, 59, 150, 0.2);
    border: 1px solid var(--brand-light);
    color: #fff !important;
    box-shadow: 0 0 10px rgba(94, 59, 150, 0.3);
}

/* 4. HEADER */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 20px;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px 8px 45px;
    transition: all 0.3s ease;
}
.search-input:focus {
    background: #000;
    border-color: var(--brand-light);
    box-shadow: 0 0 15px rgba(157, 132, 211, 0.4);
    color: #fff;
    width: 100%; /* Ensure it stays full width */
}

/* 5. CARDS */
.glass-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}
.dashboard-card {
    text-decoration: none;
    display: block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dashboard-card:hover {
    transform: translateY(-5px) scale(1.02); /* Slight scale up */
    background: rgba(50, 50, 50, 0.8);
    border-color: var(--brand-light);
    box-shadow: 0 10px 30px rgba(94, 59, 150, 0.2);
}
.dashboard-card:hover h3, 
.dashboard-card:hover p, 
.dashboard-card:hover small,
.dashboard-card:hover i {
    color: #ffffff !important;
}

/* 6. TABLES & FORMS */
.table { color: var(--text-gray); }
.table thead th { 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.table td { border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: middle; }
.form-control, .form-select {
    background: #111;
    border: 1px solid #444;
    color: #fff;
}
.form-control:focus {
    background: #000;
    border-color: var(--brand-light);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(94, 59, 150, 0.25);
}

/* 7. CHAT BUTTON */
button#floating-chat-btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--brand-main) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}
button#floating-chat-btn:hover {
    transform: scale(1.1) rotate(5deg); /* Playful rotation */
    background: var(--brand-light) !important;
}

/* 8. SCROLLBARS (The "Apple" Look) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { 
    background: #333; 
    border-radius: 4px; 
    border: 2px solid #000; /* Creates padding effect */
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }

/* 9. NEW: PULSE ANIMATIONS (For Status Dots) */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Apply Pulse to Notification Dot */
.fa-bell + span {
    animation: pulse-red 2s infinite;
}

/* Apply Pulse to Online Dot (Chat) */
.list-group-item .bg-success {
    animation: pulse-green 2s infinite;
}