/* Vertical Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--bg-secondary, #2d2d2d);
    border-right: 1px solid var(--border-color, #404040);
    transition: width 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #404040);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar-logo img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.sidebar.collapsed .sidebar-logo span {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-primary, #ffffff);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.sidebar-toggle:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
}

.sidebar-nav {
    padding: 1rem 0;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    color: var(--text-secondary, #cccccc);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

/*
.nav-item {
    margin: 0.25rem 0;
}
    */

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 0;
}

.nav-link:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: #10b981 !important;
}

.nav-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* Expand button for collapsed state */
.sidebar-expand-btn {
    display: none;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color, #404040);
    position: relative;
}

.sidebar-expand-btn.collapsed-only {
    display: block;
}

.sidebar:not(.collapsed) .sidebar-expand-btn {
    display: none;
}

/* Sidebar toggle button styling */
.sidebar-toggle-btn {
    position: relative;
}

.sidebar-toggle-btn:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1002;
    margin-left: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1002;
    margin-left: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Settings dropdown */
.settings-dropdown {
    position: relative;
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: none;
    background: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.settings-toggle:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
}

.settings-toggle i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.settings-menu {
    position: fixed;
    bottom: 10px;
    left: 150px;
    background-color: var(--bg-secondary, #2d2d2d);
    border: 1px solid var(--border-color, #404040);
    border-radius: 0.25rem;
    box-shadow: 0.5rem 0 1rem rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 9999;
    min-width: 200px;
}

.settings-menu.show {
    display: block;
}

/* Settings menu positioning will be handled by JavaScript */


.settings-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.settings-link:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
}

.settings-link i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Dark mode toggle styling */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: none;
    background: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
}

.dark-mode-toggle i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Collapsed state for settings */
.sidebar.collapsed .settings-toggle span {
    display: none;
}

.sidebar.collapsed .settings-toggle {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .settings-toggle i {
    margin-right: 0;
}

/* Collapsed state for dark mode toggle */
.sidebar.collapsed .dark-mode-toggle span {
    display: none;
}

.sidebar.collapsed .dark-mode-toggle {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .dark-mode-toggle i {
    margin-right: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 1rem;
    border-top: 1px solid var(--border-color, #404040);
    background-color: var(--bg-secondary, #2d2d2d);
}

.sidebar-footer .nav-item {
    margin: 0.25rem 0;
}

/* Main content area */
.main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    background-color: var(--bg-primary, #1a1a1a);
}

.main-content.expanded {
    margin-left: 60px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--bg-secondary, #2d2d2d);
    border-top: 1px solid var(--border-color, #404040);
    display: none; /* Hidden by default */
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
}

.mobile-logo {
    width: 30px;
    height: 30px;
}

.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary, #2d2d2d);
    border: 1px solid var(--border-color, #404040);
    border-radius: 0.5rem;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 200px;
    margin-bottom: 0.5rem;
    z-index: 1002;
    max-height: 60vh;
    overflow-y: auto;
}

.mobile-dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #ffffff);
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.mobile-dropdown-item:hover {
    background-color: var(--bg-tertiary, #3a3a3a);
    color: var(--text-primary, #ffffff);
}

.mobile-dropdown-item i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* Responsive design */
/* Large/Medium screens - show sidebar, hide bottom nav */
@media (min-width: 769px) {
    .sidebar {
        display: block; /* Show sidebar on large/medium screens */
    }

    .mobile-bottom-nav {
        display: none !important; /* Hide bottom nav on large/medium screens */
    }

    .main-content {
        margin-left: 250px;
        padding-bottom: 0; /* No padding needed */
    }

    .main-content.expanded {
        margin-left: 60px;
    }
}

/* Small screens - hide sidebar, show bottom nav */
@media (max-width: 768px) {
    .sidebar {
        display: none !important; /* Hide sidebar on mobile */
    }

    .mobile-bottom-nav {
        display: flex !important; /* Show bottom nav on mobile */
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: 60px; /* Add padding for bottom nav */
    }

    .main-content.expanded {
        margin-left: 0;
    }

    /* Mobile overlay - no longer needed */
    .sidebar-overlay {
        display: none;
    }
}

