/**
 * Sistema SaaS - Academia de Artes Marciais
 * Design System - Estilos Globais
 * Baseado nas referências visuais fornecidas
 */

/* =============================================
   RESET E CONFIGURAÇÕES BÁSICAS
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --cor-primaria: #7C3AED;
    /* Roxo */
    --cor-secundaria: #EC4899;
    /* Rosa */
    --cor-terciaria: #06B6D4;
    /* Azul */
    --cor-destaque: #FB923C;
    /* Laranja */
    --cor-sucesso: #10B981;
    /* Verde */
    --cor-erro: #EF4444;
    /* Vermelho */
    --cor-aviso: #F59E0B;
    /* Amarelo */
    --cor-info: #3B82F6;
    /* Azul Info */

    /* Cores de Fundo */
    --cor-fundo: #F9FAFB;
    /* Cinza muito claro */
    --cor-fundo-escuro: #1F2937;
    /* Cinza escuro */
    --cor-fundo-card: #FFFFFF;
    /* Branco */

    /* Cores de Texto */
    --cor-texto: #1F2937;
    /* Cinza escuro */
    --cor-texto-claro: #6B7280;
    /* Cinza médio */
    --cor-texto-muito-claro: #9CA3AF;
    /* Cinza claro */
    --cor-texto-branco: #FFFFFF;
    /* Branco */

    /* Gradientes */
    --gradiente-roxo: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    --gradiente-rosa: linear-gradient(135deg, #EC4899 0%, #F9A8D4 100%);
    --gradiente-azul: linear-gradient(135deg, #06B6D4 0%, #67E8F9 100%);
    --gradiente-laranja: linear-gradient(135deg, #FB923C 0%, #FDBA74 100%);
    --gradiente-verde: linear-gradient(135deg, #10B981 0%, #6EE7B7 100%);

    /* Sombras */
    --sombra-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sombra-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sombra-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sombra-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;

    /* Transições */
    --transicao-rapida: 0.15s ease;
    --transicao-normal: 0.3s ease;
    --transicao-lenta: 0.5s ease;

    /* Espaçamentos */
    --espacamento-xs: 0.5rem;
    --espacamento-sm: 1rem;
    --espacamento-md: 1.5rem;
    --espacamento-lg: 2rem;
    --espacamento-xl: 3rem;
}

/* =============================================
   TIPOGRAFIA
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--espacamento-sm);
    color: var(--cor-texto);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--espacamento-sm);
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color var(--transicao-rapida);
}

a:hover {
    color: var(--cor-secundaria);
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
.layout-principal {
    display: flex;
    min-height: 100vh;
}

.conteudo-principal {
    flex: 1;
    margin-left: 280px;
    padding: var(--espacamento-lg);
    transition: margin-left var(--transicao-normal);
}

.conteudo-principal.sidebar-fechada {
    margin-left: 0;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--cor-fundo-card);
    border-right: 1px solid #E5E7EB;
    padding: var(--espacamento-lg);
    overflow-y: auto;
    transition: transform var(--transicao-normal);
    z-index: 1000;
}

.sidebar.fechada {
    transform: translateX(-100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--espacamento-sm);
    margin-bottom: var(--espacamento-xl);
    padding-bottom: var(--espacamento-lg);
    border-bottom: 1px solid #E5E7EB;
}

.sidebar-logo img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    border-radius: 0;
    object-fit: contain;
}

.sidebar-logo-texto h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.sidebar-logo-texto p {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu-item {
    margin-bottom: 2px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: var(--espacamento-sm);
    padding: 0.6rem var(--espacamento-sm);
    border-radius: var(--border-radius-md);
    color: var(--cor-texto-claro);
    transition: all var(--transicao-rapida);
}

.sidebar-menu-link:hover {
    background: var(--cor-fundo);
    color: var(--cor-primaria);
}

.sidebar-menu-link.ativo {
    background: var(--gradiente-roxo);
    color: var(--cor-texto-branco);
}

.sidebar-menu-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu-titulo {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cor-texto-muito-claro);
    margin: 1.5rem 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all var(--transicao-rapida);
}

/* Estado Recolhido */
.sidebar.recolhida {
    width: 80px;
    padding: var(--espacamento-md) var(--espacamento-sm);
}

.sidebar.recolhida .sidebar-logo {
    padding: 0;
    flex-direction: column;
    gap: var(--espacamento-sm);
    justify-content: center;
    border-bottom: none;
    margin-bottom: var(--espacamento-lg);
}

.sidebar.recolhida .sidebar-logo img {
    width: 40px;
    height: 40px;
}

.sidebar.recolhida .sidebar-logo-texto,
.sidebar.recolhida .sidebar-menu-link span,
.sidebar.recolhida .sidebar-menu-titulo {
    display: none;
}

.sidebar.recolhida .sidebar-menu-link {
    justify-content: center;
    padding: 0.75rem 0;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.sidebar.recolhida .sidebar-menu-link i {
    font-size: 1.25rem;
    margin: 0;
}

.sidebar.recolhida #sidebar-toggle {
    margin: 0 auto;
    width: 32px;
    height: 32px;
    background: var(--cor-fundo);
}

.sidebar.recolhida #sidebar-toggle i {
    transform: rotate(180deg);
    font-size: 0.875rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--cor-texto-claro);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transicao-rapida);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--cor-fundo);
    color: var(--cor-primaria);
}

/* Conteúdo Expandido */
.conteudo-principal.expandido {
    margin-left: 80px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--espacamento-lg);
    background: var(--cor-fundo-card);
    padding: var(--espacamento-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--sombra-sm);
}

.header-titulo h1 {
    margin-bottom: 0.25rem;
}

.header-titulo p {
    color: var(--cor-texto-claro);
    margin-bottom: 0;
}

.header-acoes {
    display: flex;
    align-items: center;
    gap: var(--espacamento-sm);
}

.header-usuario {
    display: flex;
    align-items: center;
    gap: var(--espacamento-sm);
    padding: 0.5rem var(--espacamento-sm);
    border-radius: var(--border-radius-full);
    background: var(--cor-fundo);
    cursor: pointer;
    transition: all var(--transicao-rapida);
}

.header-usuario:hover {
    background: #E5E7EB;
}

.header-usuario-foto {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

.header-usuario-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.header-usuario-info p {
    font-size: 0.75rem;
    color: var(--cor-texto-claro);
    margin-bottom: 0;
}

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--espacamento-lg);
    margin-bottom: var(--espacamento-lg);
}

.card {
    background: var(--cor-fundo-card);
    border-radius: var(--border-radius-md);
    padding: var(--espacamento-lg);
    box-shadow: var(--sombra-md);
    transition: all var(--transicao-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-lg);
}

.card-gradiente {
    background: var(--gradiente-roxo);
    color: var(--cor-texto-branco);
}

.card-gradiente.rosa {
    background: var(--gradiente-rosa);
}

.card-gradiente.azul {
    background: var(--gradiente-azul);
}

.card-gradiente.laranja {
    background: var(--gradiente-laranja);
}

.card-gradiente.verde {
    background: var(--gradiente-verde);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--espacamento-md);
}

.card-icone {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-titulo {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.card-valor {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-link {
    font-size: 0.875rem;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    opacity: 1;
}

/* =============================================
   BOTÕES
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transicao-rapida);
    text-decoration: none;
}

.btn-primario {
    background: var(--cor-primaria);
    color: var(--cor-texto-branco);
}

.btn-primario:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

.btn-secundario {
    background: var(--cor-secundaria);
    color: var(--cor-texto-branco);
}

.btn-secundario:hover {
    background: #DB2777;
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

.btn-sucesso {
    background: var(--cor-sucesso);
    color: var(--cor-texto-branco);
}

.btn-sucesso:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--sombra-md);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-outline:hover {
    background: var(--cor-primaria);
    color: var(--cor-texto-branco);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* =============================================
   FORMULÁRIOS
   ============================================= */
.form-group {
    margin-bottom: var(--espacamento-md);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.form-control {
    width: 100%;
    padding: 0.75rem var(--espacamento-sm);
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transicao-rapida);
}

.form-control:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
    color: var(--cor-texto-muito-claro);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* =============================================
   TABELAS
   ============================================= */
.tabela-container {
    background: var(--cor-fundo-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--sombra-md);
    overflow: hidden;
}

.tabela {
    width: 100%;
    border-collapse: collapse;
}

.tabela thead {
    background: var(--cor-fundo);
}

.tabela th {
    padding: var(--espacamento-sm) var(--espacamento-md);
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cor-texto-claro);
}

.tabela td {
    padding: var(--espacamento-sm) var(--espacamento-md);
    border-top: 1px solid #E5E7EB;
}

.tabela tbody tr {
    transition: background var(--transicao-rapida);
}

.tabela tbody tr:hover {
    background: var(--cor-fundo);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sucesso {
    background: #D1FAE5;
    color: #065F46;
}

.badge-erro {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-aviso {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* =============================================
   UTILITÁRIOS
   ============================================= */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 {
    margin-top: var(--espacamento-xs);
}

.mt-2 {
    margin-top: var(--espacamento-sm);
}

.mt-3 {
    margin-top: var(--espacamento-md);
}

.mt-4 {
    margin-top: var(--espacamento-lg);
}

.mb-1 {
    margin-bottom: var(--espacamento-xs);
}

.mb-2 {
    margin-bottom: var(--espacamento-sm);
}

.mb-3 {
    margin-bottom: var(--espacamento-md);
}

.mb-4 {
    margin-bottom: var(--espacamento-lg);
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: var(--espacamento-xs);
}

.gap-2 {
    gap: var(--espacamento-sm);
}

.gap-3 {
    gap: var(--espacamento-md);
}

/* ============================================
   ANIMAÇÕES E TRANSIÇÕES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
    animation: slideInLeft 0.5s ease-out;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--border-radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-card {
    height: 150px;
}

/* ============================================
   HOVER EFFECTS E INTERATIVIDADE
   ============================================ */

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-gradiente {
    position: relative;
    overflow: hidden;
}

.card-gradiente::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-gradiente:hover::before {
    opacity: 1;
}

.card-gradiente:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Botões com animação */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tabelas com hover */
.tabela tbody tr {
    transition: all 0.2s ease;
}

.tabela tbody tr:hover {
    background: var(--cor-fundo);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Links com animação */
a {
    position: relative;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--cor-primaria);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Inputs com foco animado */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* ============================================
   TOOLTIPS
   ============================================ */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: #1F2937;
    color: white;
    font-size: 0.875rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1F2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
}

[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(-12px);
}

/* ============================================
   NOTIFICAÇÕES TOAST MELHORADAS
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-sucesso {
    border-left-color: var(--cor-sucesso);
}

.toast-erro {
    border-left-color: var(--cor-erro);
}

.toast-aviso {
    border-left-color: var(--cor-aviso);
}

.toast-info {
    border-left-color: var(--cor-info);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-sucesso .toast-icon {
    color: var(--cor-sucesso);
}

.toast-erro .toast-icon {
    color: var(--cor-erro);
}

.toast-aviso .toast-icon {
    color: var(--cor-aviso);
}

.toast-info .toast-icon {
    color: var(--cor-info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--cor-texto-claro);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.toast-close:hover {
    background: var(--cor-fundo);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--espacamento-lg);
    padding: 12px 0;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cor-texto-claro);
}

.breadcrumb-item a {
    color: var(--cor-primaria);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--cor-primaria-escura);
}

.breadcrumb-separator {
    color: var(--cor-texto-claro);
}

.breadcrumb-item.active {
    color: var(--cor-texto);
    font-weight: 600;
}

/* ============================================
   ESTADOS VAZIOS
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--cor-texto-claro);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    display: block;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cor-texto);
}

.empty-state-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   PAGINAÇÃO
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: var(--espacamento-lg);
}

.pagination-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    border: 1px solid #E5E7EB;
    background: white;
    color: var(--cor-texto);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-item:hover {
    background: var(--cor-fundo);
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
}

.pagination-item.active {
    background: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1001;
        width: 48px;
        height: 48px;
        background: var(--cor-primaria);
        color: white;
        border: none;
        border-radius: var(--border-radius-md);
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--sombra-md);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .tabela-container {
        overflow-x: auto;
    }

    .tabela {
        min-width: 600px;
    }

    .card {
        margin-bottom: var(--espacamento-md);
    }

    .toast-container {
        left: 20px;
        right: 20px;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --espacamento-sm: 0.5rem;
        --espacamento-md: 0.75rem;
        --espacamento-lg: 1rem;
    }

    .card {
        padding: var(--espacamento-md);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* ============================================
   MODO ESCURO (Preparação)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Será implementado futuramente */
}

/* ============================================
   IMPRESSÃO
   ============================================ */

@media print {

    .sidebar,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #E5E7EB;
    }
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */
@media (max-width: 768px) {
    .conteudo-principal {
        margin-left: 0;
        padding: var(--espacamento-sm);
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.aberta {
        transform: translateX(0);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--espacamento-sm);
    }
}