/* Enhanced Sidebar - L'Oréal CWI Style */

.sidebar {
    width: 240px;
    flex: 0 0 240px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1A2B33 0%, #0A1014 100%);
    transition: width var(--transition-base);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Create Brief Button */
.create-brief-btn {
    height: 40px;
    border-radius: 6px;
    border: 1px solid #565655;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient( 90deg, #3A5161 0%, #638AA6 100% );
    color: #fff;
    cursor: pointer;
    justify-content: center;
    padding: 0 1rem;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;

}

    .create-brief-btn:hover {
        background: #3a3a3a;
        border-color: #638AA6;
    }

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #666;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border-left: 3px solid transparent;
    font-weight: 400;
    font-size: 0.875rem;
    background: transparent;
    border-right: none;
    border-top: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

    .nav-item:hover {
        background: #0B2536;
        color: #ffffff;
    }

    .nav-item.active {
        background: #0B2536;
        color: #FFFFFF;
        border-left: 4px solid #B8B1F1;
    }

.nav-item.active .nav-item-icon {
    color: #B8B1F1;
}

.nav-item.active .nav-item-icon svg {
    color: #B8B1F1;
    fill: #B8B1F1;
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-item-text {
    flex: 1;
}

/* Top Bar Enhanced */
.topbar,
.top-row {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* User Menu Enhanced */
.user-menu {
    position: relative;
}

.user-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E3A535;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 10rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    z-index: 1000;
    animation: slideDown 0.15s ease-out;
}

.sidebar.collapsed .user-menu {
    position: relative;
}

.sidebar.collapsed .dropdown-menu {
    position: fixed;
    left: 20px;
    bottom: 50px;
    top: auto;
    right: auto;
    z-index: 9999;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #f9fafb;
}

/* Page Content Enhanced */
.content,
.page-content {
    flex: 1;
    padding: 2rem;
    overflow: auto;
    background: #fafafa;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

/* Breadcrumb - CWI Style */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #E3A535;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.page-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0.5rem 0 0.25rem 0;
}

.page-title-medium {
    font-size: 10px;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.125rem;
    margin-top: 0.25rem;
    color: hsl(0 0% 45% / 1);
}

.page-step {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Enhanced Cards */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    /*box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);*/
    box-shadow: none;
    transition: all 0.2s;
}

    .card:hover {
        /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);*/
        box-shadow: none;
    }

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Enhanced */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

    .table thead {
        background: #FFFFFF;
    }

    .table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 12px;
        font-weight: 500;
        color: #FFFFFF;
        border-bottom: 1px solid #e5e7eb;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.collapsed .nav-item {
    padding-left: 1.05rem;
}
.collapsed .create-brief-coll {
    padding: inherit !important
}


.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    margin-left: 0px;
}
