/* assets/css/style.css */
/* ── Design tokens e componentes (carregados automaticamente) ── */
@import url('design-tokens.css');
@import url('sidebar.css');
@import url('cards.css');
@import url('toasts.css');

:root {
    --primary-color:   var(--indigo-600);
    --primary-hover:   var(--indigo-700);
    --secondary-color: var(--violet-500);
    --bg-color:        #f4f6fa;
    --card-bg:         #ffffff;
    --text-color:      var(--slate-900);
    --text-muted:      var(--slate-500);
    --glass-border:    var(--slate-200);
    --glass-shadow:    var(--shadow-sm);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── Navbar ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--indigo-600), var(--violet-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Botões ── */
.btn {
    padding: 0.625rem 1.375rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--indigo-600) 0%, var(--violet-500) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, var(--indigo-700) 0%, var(--violet-600) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border: 1px solid var(--slate-300);
    background: transparent;
    color: var(--slate-700);
}

.btn-outline:hover {
    background: var(--slate-100);
    border-color: var(--slate-400);
    color: var(--slate-900);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ── Hero Section ── */
.hero {
    text-align: center;
    padding: 5rem 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--slate-900);
    font-weight: 800;
}

.hero h1 span {
    background: linear-gradient(to right, var(--indigo-600), var(--violet-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ── Feature Cards (landing) ── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 4rem 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
}

.card h3 {
    margin-bottom: 0.75rem;
    color: var(--slate-900);
    font-size: 1.05rem;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* ── LGPD Section ── */
.lgpd-section {
    background: var(--indigo-50);
    border-radius: 1rem;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
    border: 1px solid var(--indigo-100);
}

.lgpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-600);
    border-radius: 2rem;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Contact/Access ── */
.access-request {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, var(--indigo-50), var(--violet-50));
    border-radius: 1rem;
    border: 1px solid var(--indigo-100);
}

.email-box {
    background: #ffffff;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--indigo-600);
    margin: 1.5rem 0;
    display: inline-block;
    border: 1px dashed var(--indigo-200);
    box-shadow: var(--shadow-xs);
}

/* ── Formulários ── */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--slate-700);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    color: var(--text-color);
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--indigo-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-control::placeholder {
    color: var(--slate-400);
}

/* ── Layout com sidebar ── */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar legada (style.css) — sobrescrita por sidebar.css em módulos */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    z-index: 50;
    box-shadow: var(--shadow-xs);
}

.sidebar-header {
    padding: 1rem 1.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 0.5rem;
}

.sidebar-logo-img {
    max-width: 130px;
    height: auto;
    margin-bottom: 0.75rem;
}

.sidebar-user {
    font-size: 0.78rem;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.sidebar-section {
    margin-bottom: 0.5rem;
}

.sidebar-section-title {
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--slate-400);
    letter-spacing: 0.08em;
    padding: 0.6rem 0.75rem 0.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s ease;
    border-radius: 0.375rem;
}

.sidebar-section-title:hover {
    background: var(--slate-50);
}

.sidebar-section-title::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    color: var(--slate-400);
}

.sidebar-section.collapsed .sidebar-section-title::after {
    transform: rotate(-90deg);
}

.sidebar-section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0.125rem 0;
}

.sidebar-section.collapsed .sidebar-section-content {
    max-height: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    color: var(--slate-700);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 1px;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.menu-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--slate-400);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.menu-item:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

.menu-item:hover i {
    color: var(--slate-600);
}

.menu-item.active {
    background-color: var(--indigo-50);
    color: var(--indigo-700);
    font-weight: 600;
}

.menu-item.active i {
    color: var(--indigo-600);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--indigo-600);
    border-radius: 0 4px 4px 0;
}

.menu-item.danger {
    color: var(--red-500);
}

.menu-item.danger i {
    color: var(--red-400);
}

.menu-item.danger:hover {
    background-color: var(--red-50);
    color: var(--red-600);
}

.main-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-y: auto;
    background-color: var(--bg-color);
}

/* Scrollbar sidebar */
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--slate-200);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background-color: var(--slate-300);
}

/* ── Dashboard stats (legado) ── */
.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    flex: 1;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--slate-900);
}
