/* Import Noto Sans font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');

/* Add at the top of the file */
/* Define color variables */
:root {
    --neon-yellow: #FFFF00;
    --electric-pink: #FF69B4;
    --electric-blue: #00FFFF;
}

/* Gradient animation keyframes */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none; /* Hide the old hamburger menu */
}

/* Hamburger Menu transformation */
.hamburger-menu span {
    display: none; /* Hide the old spans */
}

/* X transformation when sidebar is open */
.sidebar.open ~ .hamburger-menu span:nth-child(1),
.sidebar.open ~ .hamburger-menu span:nth-child(2),
.sidebar.open ~ .hamburger-menu span:nth-child(3) {
    display: none; /* Hide the old transformations */
}

[data-theme="dark"] .hamburger-menu span {
    background-color: #fff;
}

[data-theme="dark"] .hamburger-menu span {
    background-color: #fff;
}

/* Optional: Add transition for hamburger menu hover effect */
.hamburger-menu:hover span {
    opacity: 0.7;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: left 0.2s ease-out;
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .sidebar {
    background: rgba(45, 45, 45, 0.75);
    border-right: none;
}

.sidebar.open {
    left: 0;
}

/* Ensure sidebar stays open while hovered */
.sidebar:hover {
    left: 0;
}

/* Sidebar Content */
.sidebar-content {
    padding: 80px 0 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Sections Container */
.sidebar-sections {
    flex: 1;
    overflow-y: auto;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 30px;
    padding: 0 15px;
}

.sidebar-section h3 {
    color: var(--heading-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .sidebar-section h3 {
    color: #999;
}

/* Starred Box */
.starred-box {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #666;
}

.starred-box p {
    font-size: 0.85rem;
    margin: 0;
}

[data-theme="dark"] .starred-box {
    border-color: #444;
    color: #999;
}

/* Recent Items */
.recent-items {
    margin-bottom: 10px;
}

.recent-item {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-item:hover {
    color: #2196F3;
    background-color: rgba(33, 150, 243, 0.05);
}

.view-all-link {
    margin-top: 8px;
    font-size: 0.9em;
}

.view-all-link a {
    color: #2196F3;
    text-decoration: none;
}

.view-all-link a:hover {
    text-decoration: underline;
}

.loading-indicator {
    color: var(--subtitle-color);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* User Section */
.user-section {
    position: static;
    width: auto;
    margin-top: 0;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: inherit;
    margin-bottom: 5px; /* Align with minimized avatar */
}

[data-theme="dark"] .user-section {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.user-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.2s ease;
}

[data-theme="dark"] .user-button {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.user-button:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .user-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User avatar in the sidebar */
.user-avatar {
    width: 32px;
    height: 32px;
    background-color: #00FFFF;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.user-email {
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

[data-theme="dark"] .user-email {
    color: #fff;
}

.expand-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: transform 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.user-dropdown.active + .user-button .expand-arrow {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    display: none;
    flex-direction: column;
    margin-top: 8px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .user-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown a {
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 85vw;
        left: -85vw;
    }

    .user-section {
        width: auto;
    }
}

/* Main Content Push */
.main-content {
    transition: none;
}

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

@media (max-width: 768px) {
    .main-content.shifted {
        margin-left: 0;
    }
}

/* Minimized User Avatar */
.minimized-user-avatar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 998; /* Below sidebar but above other content */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00FFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease-out;
    opacity: 1;
}

.minimized-user-avatar .user-initials {
    color: black;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide minimized avatar on mobile */
@media (max-width: 768px) {
    .minimized-user-avatar {
        display: none;
    }
}

/* Hide minimized avatar when sidebar is open */
body:has(.sidebar.open) .minimized-user-avatar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease-out;
    visibility: hidden; /* Add this to completely hide it */
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 20px 15px;
    margin-top: auto;
    text-align: center;
}

[data-theme="dark"] .sidebar-logo {
}

.sidebar-logo h2 {
    font-family: 'Prompt', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(
        45deg,
        var(--neon-yellow) 0%,
        var(--electric-pink) 35%,
        var(--electric-blue) 65%,
        var(--neon-yellow) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s linear infinite;
    position: relative;
    z-index: 2;
}

/* Home link section */
.home-section {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
}

[data-theme="dark"] .home-section {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.home-link {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

[data-theme="dark"] .home-link {
    color: #64B5F6; /* Lighter blue for dark mode */
}

.home-link:hover {
    color: #2196F3;
}

.home-link i {
    font-size: 1.2rem;
}

/* Update sidebar text colors for better contrast in dark mode */

/* Recent items */
.recent-items a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease;
}

.recent-items a:hover {
    color: var(--heading-color);
}

/* View all link */
.view-all-link a {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .view-all-link a {
    color: #64B5F6; /* Lighter blue for dark mode */
}

.view-all-link a:hover {
    text-decoration: underline;
}

/* Home link */
.home-link {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

/* User email in sidebar */
.user-email {
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

/* Loading indicator */
.loading-indicator {
    color: var(--subtitle-color);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Add these styles for the hamburger animation */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px; /* Increased gap since we only have 2 bars */
    padding: 8px;
    background: none;
    border: none;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    margin: 0 auto;
}

/* Hide the middle bar completely */
.bar-2 {
    display: none;
}

/* X transformation without animation */
.sidebar-toggle.active .bar-1 {
    transform: translateY(5px) rotate(45deg);
}

.sidebar-toggle.active .bar-3 {
    transform: translateY(-5px) rotate(-45deg);
}

/* Add dark mode support */
[data-theme="dark"] .bar {
    background-color: #fff;
}

/* Remove these hover styles completely */
.sidebar-toggle:hover,
[data-theme="dark"] .sidebar-toggle:hover {
    /* Removing these empty hover styles */
} 