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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* ============================================
   SIDEBAR ESTILO
============================================ */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #2c2c2c;
    color: #ccc;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    background: #6c63ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* Menu */
.nav {
    list-style: none;
    padding: 0 12px;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    gap: 12px;
}

.nav-link i:first-child {
    width: 20px;
    font-size: 14px;
    color: #fff;
}

.nav-link .menu-title {
    flex: 1;
    color: #fff;
}

.nav-link .arrow {
    font-size: 10px;
    transition: transform 0.2s;
    margin-left: auto;
    color: #fff;
}

.nav-link[aria-expanded="true"] .arrow {
    transform: rotate(90deg);
}

.nav-link:hover {
    background: #3a3a3a;
}

/* Submenu */
.sub-menu {
    list-style: none;
    padding-left: 32px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.sub-item {
    margin-bottom: 2px;
}

.sub-item a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    border-radius: 6px;
    gap: 10px;
    transition: all 0.2s;
}

.sub-item a i {
    width: 20px;
    font-size: 12px;
    color: #fff;
}

.sub-item a span {
    flex: 1;
    color: #fff;
}

.sub-item a .badge {
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.sub-item a:hover {
    background: #3a3a3a;
}

.sub-item.active a {
    background: #6c63ff;
    color: #fff;
}

.sub-item.active a i {
    color: #fff;
}

/* ============================================
   MAIN CONTENT COM NAVBAR
============================================ */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f5f5f5;
}

/* Navbar Superior */
.top-navbar {
    background: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.navbar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.notification-icon:hover {
    color: #6c63ff;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #6c63ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Content Area */
.content-area {
    padding: 24px 30px;
}

/* Cards */
.card-dashboard {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
    border: 1px solid #e0e0e0;
}

.card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.card-icon i {
    font-size: 24px;
    color: #6c63ff;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.card-sub {
    font-size: 12px;
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
}

.card-sub:hover {
    text-decoration: underline;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #6c63ff 0%, #8b85ff 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-sub {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Section Title */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c63ff;
    display: inline-block;
}

/* Credits Card */
.credits-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: center;
}

.credits-value {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #3a3a3a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #6c63ff;
    border-radius: 4px;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 18px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .top-navbar {
        padding-left: 60px;
    }
}