/* Global Styles */
:root {
    --primary-color: #2563EB;
    /* Blue 600 */
    --secondary-color: #16A34A;
    /* Green 600 */
    --accent-color: #F59E0B;
    /* Amber 500 */
    --text-dark: #1F2937;
    /* Gray 800 */
    --text-light: #6B7280;
    /* Gray 500 */
    --bg-light: #F9FAFB;
    /* Gray 50 */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Navigation */
.active-nav {
    background-color: #3B82F6;
    color: white;
}

.nav-btn {
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #F3F4F6;
    transform: translateY(-1px);
}

/* Cards & Hover Effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mobile-menu-open {
        display: block !important;
    }

    .sidebar-hidden {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 0 4px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 320px;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    transition: transform 0.3s ease;
}

.chat-widget.minimized {
    transform: translateY(calc(100% - 48px));
}

.chat-header {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header:hover {
    background: #F9FAFB;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
}

.chat-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-tab.active {
    color: #2563EB;
    border-bottom: 2px solid #2563EB;
}

.chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-item:hover {
    background: #F3F4F6;
}

.user-avatar {
    position: relative;
    margin-right: 12px;
}

.user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10B981;
    border: 2px solid white;
    border-radius: 50%;
}

.message-item {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
}

.message-item:hover {
    background: #F9FAFB;
}