body {
    background-color: var(--bg-color);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar {
    background-color: var(--white);
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 5px var(--shadow-color);
    position: sticky;
    top: 56px; /* Height of the navbar */
    height: calc(100vh - 56px);
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
}

/* Mobile sidebar styles */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 56px;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1040;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

.sidebar .nav-link {
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    border-radius: 0.25rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    background-color: var(--bg-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

.main-content {
    padding: 2rem;
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px var(--shadow-color);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Hover effects only for dashboard and room/conversation cards */
body[data-page="dashboard"] .card,
body[data-page="rooms"] .card,
body[data-page="conversations"] .card {
    transition: all 0.3s ease;
}

body[data-page="dashboard"] .card:hover,
body[data-page="rooms"] .card:hover,
body[data-page="conversations"] .card:hover {
    box-shadow: 0 8px 16px var(--shadow-color);
}

body[data-page="dashboard"] .card::after,
body[data-page="rooms"] .card::after,
body[data-page="conversations"] .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-opacity-15) 0%, var(--secondary-opacity-15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

body[data-page="dashboard"] .card:hover::after,
body[data-page="rooms"] .card:hover::after,
body[data-page="conversations"] .card:hover::after {
    opacity: 1;
}

/* Override hover effects for file grid cards */
#fileGrid .card {
    transform: none !important;
    box-shadow: 0 2px 4px var(--shadow-color) !important;
}

#fileGrid .card:hover {
    transform: none !important;
    box-shadow: 0 2px 4px var(--shadow-color) !important;
}

#fileGrid .card::after {
    display: none !important;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.document-card {
    transition: transform 0.2s;
}


/* Remove hover effect from list group items */
.list-group-item-action:hover {
    background-color: transparent !important;
    color: inherit !important;
} 