/* Variáveis de Cores */
:root {
    --bg-dark: #1b1b28;
    --bg-darker: #151521;
    --topbar-bg: #2b2b36;
    --bg-light: #f4f6f9;
    --text-muted: #8c8c9e;
    --text-light: #ffffff;
    --primary-color: #007bff;
    --hover-color: rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    display: flex;
}

/* Sidebar Estilos */
.sidebar {
    width: 260px;
    background-color: var(--bg-dark);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    color: var(--text-light);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header h4,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .menu-label,
.sidebar.collapsed .arrow,
.sidebar.collapsed .badge-notification {
    display: none;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background-color: var(--bg-darker);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a90e2;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-label {
    display: block;
    padding: 10px 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.menu-item:hover, .menu-item.active {
    background-color: var(--hover-color);
    color: var(--text-light);
}

.menu-item i {
    width: 25px;
    font-size: 1.1rem;
    text-align: center;
    margin-right: 15px;
}

.menu-item .arrow {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.8rem;
}

.badge-notification {
    background-color: #f1416c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: auto;
}

/* Área Principal */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Topbar Estilos */
.topbar {
    height: 70px;
    background-color: var(--topbar-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.2rem;
}

.badge-dot {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #f1416c;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-logout {
    background: none;
    border: none;
    color: #f1416c;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* Conteúdo Dinâmico (Cards) */
.content-wrapper {
    padding: 30px;
}

.module-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.module-card.active-card {
    border: 1px solid #ffd2a3;
    box-shadow: 0 8px 25px rgba(255, 168, 0, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 1.8rem;
}

.module-card h5 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.module-card p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Cores Suaves para os Ícones dos Cards */
.bg-warning-soft { background-color: #fff4e5; }
.bg-danger-soft { background-color: #ffe2e5; }
.bg-success-soft { background-color: #e8fff3; }
.bg-secondary-soft { background-color: #f3f6f9; }
.bg-primary-soft { background-color: #e1f0ff; }
.bg-pink-soft { background-color: #fce4ec; }
.text-pink { color: #e91e63 !important; }