:root {
    --bg-color: #f5f7fb;
    --sidebar-bg: #1f2937;
    --sidebar-hover: #374151;
    --primary-color: #3b82f6;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 16px;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-color);
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    color: white;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 0 10px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #d1d5db;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.2s;
}

.menu-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.menu-item.active {
    background: rgba(59, 130, 246, 0.18);
    color: white;
}

.main-wrapper {
    margin-left: 250px;
    width: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 260px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
}

.btn-logout {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
}

.btn-logout:hover {
    background: #f8fafc;
}

.page-content {
    padding: 24px;
}

.page-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-muted);
    margin-bottom: 0;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    padding: 24px;
}

.custom-table thead th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.btn-primary-soft {
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
}

.btn-primary-soft:hover {
    opacity: 0.95;
}

/* ALERTS */

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-alert {
    min-width: 260px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

/* TIPOS */
.alert-success { background: #10b981; }
.alert-error   { background: #ef4444; }
.alert-warning { background: #f59e0b; }
.alert-info    { background: #3b82f6; }

/* BOTÃO FECHAR */
.alert-close {
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

/* ANIMAÇÃO */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PROFILE */

.profile-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-item {
    display: flex;
    flex-direction: column;
}

.profile-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.profile-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* LOGIN PAGE */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-top: 4px;
}

/* ARQUITETURA */
.content-card i {
    color: var(--primary-color);
    margin-right: 6px;
}

.content-card ul li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.content-card p {
    color: var(--text-muted);
}