/* ============================================
   GNG Stock App - Final Clean CSS
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f5f7fb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.08);
    --sidebar-width: 260px;
    --sidebar-collapsed: 84px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------- BACKGROUND ---------- */
.bg-animated {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fb 0%, #eef2ff 50%, #fdf2f8 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 25s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
    top: -200px; left: -100px;
}
.bg-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -300px; right: -200px;
    animation-delay: -8s;
}
.bg-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -60px) scale(1.1); }
    66% { transform: translate(-60px, 60px) scale(0.9); }
}

.bg-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

/* ---------- BRAND ---------- */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 22px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    flex-shrink: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar-brand-title {
    font-weight: 800;
    font-size: 1rem;
}

.sidebar-brand-subtitle {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Collapsed brand */
.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 8px 0 22px;
}

.sidebar.collapsed .sidebar-brand-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* ---------- NAV ---------- */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 12px 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.sidebar.collapsed .sidebar-section {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link span {
    transition: var(--transition);
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    border-radius: 999px;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent-blue);
    font-weight: 600;
}

.sidebar-link.active::before {
    height: 60%;
}

.sidebar-link svg {
    flex-shrink: 0;
}

/* Collapsed nav */
.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 11px;
}

.sidebar.collapsed .sidebar-link span {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* ---------- FOOTER ---------- */
.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.collapsed .user-card {
    justify-content: center;
    padding: 8px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
    transition: var(--transition);
}

.sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ============================================
   COLLAPSE BUTTON - FINAL DESIGN
   ============================================ */
.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.15);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: 0.02em;
    overflow: hidden;
}

.sidebar-collapse-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-collapse-btn span {
    transition: all 0.25s ease;
    white-space: nowrap;
}

.sidebar-collapse-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar-collapse-btn:active {
    transform: scale(0.97);
}

.sidebar.collapsed .sidebar-collapse-btn {
    padding: 11px;
    gap: 0;
}

.sidebar.collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-collapse-btn span {
    opacity: 0;
    width: 0;
    margin: 0;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
    margin-left: calc(var(--sidebar-width) + 32px);
    padding: 32px 32px 32px 16px;
    min-height: 100vh;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: calc(var(--sidebar-collapsed) + 32px);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- TOPBAR (Mobile) ---------- */
.topbar {
    display: none;
    position: sticky;
    top: 12px;
    z-index: 99;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    align-items: center;
    justify-content: space-between;
}

.topbar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.topbar-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.topbar-title {
    font-weight: 800;
    font-size: 0.95rem;
}

/* ---------- OVERLAY ---------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- GLASS ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

/* ---------- STATS ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.12);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3); }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.stat-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }

.stat-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ---------- CARD ---------- */
.card {
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- TABLE ---------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table thead {
    background: rgba(59, 130, 246, 0.04);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: rgba(59, 130, 246, 0.04); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---------- BUTTON ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-sm { padding: 6px 12px; font-size: 0.75rem; }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* ---------- BADGE ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-info { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }

/* ---------- ALERT ---------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--accent-green);
    color: #047857;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--accent-red);
    color: #b91c1c;
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover { background: var(--accent-blue); color: white; }
.pagination .active span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-120%);
        width: var(--sidebar-width) !important;
    }

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

    .sidebar.collapsed {
        width: var(--sidebar-width) !important;
    }

    .sidebar-collapse-btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 24px 16px;
    }

    .topbar {
        display: flex;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.4rem; }
    .stat-icon { width: 38px; height: 38px; margin-bottom: 12px; }
    .page-title { font-size: 1.35rem; }
    .card { padding: 18px; }
    .main-content { padding: 16px 12px; }
}

/* ---------- UTILITIES ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.4); }

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.2); }

/* ============================================
   PAGINATION - Clean Design
   ============================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    align-items: center;
}

.pagination li {
    display: inline-flex;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pagination a:hover {
    background: var(--accent-blue);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.pagination .active span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Arrow prev/next - kecil */
.pagination .page-prev a,
.pagination .page-next a,
.pagination a[rel="prev"],
.pagination a[rel="next"] {
    padding: 0 12px;
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-info {
        text-align: center;
    }

    .pagination {
        justify-content: center;
    }
}

.sidebar-logout-form { margin-top: 10px; width: 100%; }
.sidebar.collapsed .sidebar-logout-form { display: none; }
.sidebar-logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(239,68,68,0.2); background: transparent; color: #dc2626; font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s ease; }
.sidebar-logout-btn:hover { background: #dc2626; color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(220,38,38,0.3); }

/* ---------- COMPANY DROPDOWN ---------- */
.company-dropdown {
    position: relative;
    margin: 0 0 16px;
}

.company-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-align: left;
}

.company-dropdown-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.3);
}

.company-dropdown-info {
    flex: 1;
    min-width: 0;
}

.company-dropdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.company-dropdown-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-dropdown-menu {
    position: fixed;
    z-index: 9999;
    min-width: 220px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(31, 38, 135, 0.15);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.company-dropdown.open .company-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.company-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.company-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
}

.company-dropdown-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    font-weight: 700;
}

.company-dropdown-static {
    padding: 10px 14px;
    margin: 0 0 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.company-dropdown-name-static {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .company-dropdown,
.sidebar.collapsed .company-dropdown-static {
    display: none;
}
