/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 50;
}

.sidebar-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
}

.brand-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    opacity: 0.9;
}

.nav-menu {
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    padding: 12px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--accent);
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 24px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.developed-by {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
}

.developer-name {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.developer-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
    opacity: 0.5;
}

.sidebar-footer:hover .developer-name {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sidebar-footer:hover .developer-name::after {
    width: 100%;
    background-color: white;
}

/* Sidebar Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.overlay {
    display: none;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
    body {
        overflow-x: hidden;
    }

    .mobile-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .close-sidebar {
        display: block;
    }

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

    .page-title {
        font-size: 14px;
        max-width: 100%;
        min-width: 0;
    }

    .global-actions span {
        display: none;
    }

    .top-bar {
        padding: 12px 16px;
        gap: 12px;
        align-items: stretch;
        flex-direction: column;
    }

    .top-bar-main {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
    }
}
