 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --heading-font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

            --primary-color: #2563eb;
            --primary-dark: #1e40af;
            --danger-color: #c80028;
            --danger-dark: #830303;
            --sidebar-width: 280px;
            --sidebar-collapsed: 80px;
            --bg-dark: #0f172a;
            --bg-darker: #020617;
            --text-light: #f1f5f9;
            --text-muted: #94a3b8;
            --border-color: #1e293b;
            --hover-bg: #1e293b;
            --active-bg: #334155;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
             --h1-font-size: 1.4rem;
            --h1-color: #0039ba;
            --h1-font-weight: 700;
        }

        body {
            font-family: var(--heading-font-family);
            background: linear-gradient(135deg, #fafafa 0%, #fcfcff 100%);
            min-height: 100vh;
            color: var(--bg-dark);
        }

        
         h1 {
  
    font-size: var(--h1-font-size);
    font-family: var(--heading-font-family);


    color: var(--h1-color);
    font-weight: var(--h1-font-weight);
    margin-top: 5px;
    margin-bottom: 2px;
    margin: 1rem 0;
    line-height: 1.2;
     padding-bottom: 0.5rem;
    
    position: relative;
}

        /* Hamburger Button */
        .hamburger {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1001;
            background: var(--bg-dark);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 12px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 20px;
            transition: var(--transition);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        .hamburger:hover {
            background: var(--primary-color);
            transform: scale(1.05);
        }

        .hamburger:active {
            transform: scale(0.95);
        }

        /* Overlay */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(4px);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--bg-dark);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            transition: var(--transition);
            box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        /* Sidebar Header */
        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-darker);
        }

        .logo-link {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-light);
        }

        .logo {
            width: 45px;
            height: 45px;
           
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin: 10px;
            
        }

        .logo-img {
            width: 72px;
          
            object-fit: contain;

            
        }

        .logo-text {
            font-size: 18px;
            font-weight: 600;
            line-height: 1.3;
            white-space: nowrap;
            opacity: 1;
            transition: var(--transition);
            padding: 0.8rem;
        }

        .text-danger {
            color: var(--danger-color);
            display: block;
        }

        /* Sidebar Content */
        .sidebar-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
             padding-bottom: 80px; /* Espaço para o user info */
        }

        .sidebar-content::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-content::-webkit-scrollbar-track {
            background: var(--bg-darker);
        }

        .sidebar-content::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 3px;
        }

        .sidebar-content::-webkit-scrollbar-thumb:hover {
            background: var(--hover-bg);
        }

        /* Primary Nav */
        .primary-nav {
            flex: 1;
            padding: 20px 0;
        }

        .nav-link, .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            color: var(--text-muted);
            text-decoration: none;
            transition: var(--transition);
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            position: relative;
        }

        .nav-link i, .dropdown-toggle i {
            width: 20px;
            font-size: 18px;
            transition: var(--transition);
        }

        .nav-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 0;
            background: var(--primary-color);
            border-radius: 0 4px 4px 0;
            transition: var(--transition);
        }

        .nav-link:hover, .dropdown-toggle:hover {
            color: var(--text-light);
            background: var(--hover-bg);
        }

        .nav-link:hover i, .dropdown-toggle:hover i {
            transform: scale(1.1);
        }

        .nav-link.active {
            color: var(--text-light);
            background: var(--active-bg);
        }

        .nav-link.active::before {
            height: 100%;
        }

        .nav-link.active i {
            color: var(--primary-color);
        }

        /* Dropdown */
        .dropdown {
            position: relative;
        }

        .dropdown-toggle {
            justify-content: space-between;
        }

        .dropdown-toggle::after {
            content: '';
            position: absolute;
            
            
            
            transition: var(--transition);
        }

        .dropdown.active .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        .dropdown-menu-custom {
            max-height: 0;
            overflow: hidden;
            background: var(--bg-darker);
            transition: max-height 0.3s ease;
        }

        .dropdown.active .dropdown-menu-custom {
            max-height: 500px;
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px 12px 52px;
            color: var(--text-muted);
            text-decoration: none;
            transition: var(--transition);
            font-size: 14px;
            position: relative;
        }

        .dropdown-item i {
            width: 18px;
            font-size: 16px;
        }

        .dropdown-item::before {
            content: '';
            position: absolute;
            right: 15px;
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid var(--danger-dark);
            transition: transform 0.3s;
        }

        .dropdown-item:hover {
            color: var(--text-light);
            background: var(--hover-bg);
        }

        .dropdown-item:hover::before {
            background: var(--danger-color);
            transform: translateY(-50%) scale(1.3);
        }

        .dropdown-item.active {
            color: var(--text-light);
            background: var(--active-bg);
        }

        .dropdown-item.active::before {
            background: var(--danger-color);
        }

        .dropdown-divider {
            margin: 8px 20px;
            border: none;
            border-top: 1px solid var(--border-color);
        }

        /* User Info */
       .user-info {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-darker);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-shrink: 0;
            margin-top: auto;
        }
        

        .user-details {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }

        .user-details img, .avatar-placeholder {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
            border: 2px solid var(--text-muted);
        }

        .avatar-placeholder {
            background: var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 18px;
            color: white;
        }

        .user-name {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .logout-button {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--hover-bg);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .logout-button:hover {
            background: var(--danger-color);
            color: white;
            transform: scale(1.05);
        }

        /* Main Content */
        .main-content {
            margin-left: var(--sidebar-width);
            padding: 15px;
            transition: var(--transition);
            min-height: 100vh;
        }

        .content-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .content-card h1 {
            color: #1e293b;
            margin-bottom: 20px;
            font-size: 32px;
        }

        .content-card p {
            color: #64748b;
            font-size: 16px;
            line-height: 1.6;
        }

        /* Responsive - Mobile */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .sidebar {
                transform: translateX(-100%);
                width: 85vw;
                max-width: 320px;
            }

            .sidebar.active {
                transform: translateX(0);
            }

            .main-content {
                margin-left: 0;
                padding: 80px 15px 20px;
            }

            .content-card {
                padding: 20px;
                border-radius: 16px;
            }

            .content-card h1 {
                font-size: 22px;
            }

            .content-card p {
                font-size: 14px;
            }

            .sidebar-header {
                padding: 20px 16px;
            }

            .logo-text {
                font-size: 16px;
            }

            .nav-link {
                padding: 12px 16px;
                font-size: 14px;
            }

            .user-info {
                padding: 12px 16px;
            }

            .user-name {
                font-size: 13px;
            }

            .avatar-placeholder {
                width: 35px;
                height: 35px;
                font-size: 16px;
            }

            .logout-button {
                width: 32px;
                height: 32px;
            }
        }

        /* Small Mobile */
        @media (max-width: 480px) {
            .sidebar {
                width: 90vw;
            }

            .hamburger {
                width: 44px;
                height: 44px;
                font-size: 18px;
                top: 15px;
                left: 15px;
            }

            .main-content {
                padding: 70px 12px 16px;
            }

            .content-card {
                padding: 18px;
            }

            .content-card h1 {
                font-size: 20px;
            }

            .logo-text {
                font-size: 14px;
            }
        }
        /* Smooth animations */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .sidebar.active .nav-link,
        .sidebar.active .dropdown {
            animation: slideIn 0.3s ease forwards;
        }

        .sidebar.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
        .sidebar.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
        .sidebar.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
        .sidebar.active .dropdown:nth-child(4) { animation-delay: 0.2s; }
        .sidebar.active .dropdown:nth-child(5) { animation-delay: 0.25s; }