/**
 * ALFAOS - CSS Customizado
 * Estilos adicionais ao Tailwind CSS
 */

/* =====================================================
   VARIÁVEIS CSS (Cores do Sistema)
   ===================================================== */
:root {
    /* Primary (Azul) */
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;

    /* Success (Verde) */
    --color-success-50: #f0fdf4;
    --color-success-100: #dcfce7;
    --color-success-200: #bbf7d0;
    --color-success-300: #86efac;
    --color-success-400: #4ade80;
    --color-success-500: #22c55e;
    --color-success-600: #16a34a;
    --color-success-700: #15803d;

    /* Warning (Amarelo) */
    --color-warning-50: #fffbeb;
    --color-warning-100: #fef3c7;
    --color-warning-200: #fde68a;
    --color-warning-300: #fcd34d;
    --color-warning-400: #fbbf24;
    --color-warning-500: #f59e0b;
    --color-warning-600: #d97706;
    --color-warning-700: #b45309;

    /* Danger (Vermelho) */
    --color-danger-50: #fef2f2;
    --color-danger-100: #fee2e2;
    --color-danger-200: #fecaca;
    --color-danger-300: #fca5a5;
    --color-danger-400: #f87171;
    --color-danger-500: #ef4444;
    --color-danger-600: #dc2626;
    --color-danger-700: #b91c1c;

    /* Neutral (Cinzas) */
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-700: #404040;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    --color-neutral-950: #0a0a0a;

    /* Sidebar */
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 64px;
}

/* =====================================================
   RESET E BASE
   ===================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Desabilitar seleção de texto globalmente */
body {
    user-select: none;
    -webkit-user-select: none;
}

/* Permitir seleção em campos editáveis */
input,
textarea,
[contenteditable="true"],
code,
pre,
.selectable {
    user-select: text;
    -webkit-user-select: text;
}

/* =====================================================
   SCROLLBAR CUSTOMIZADA
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-300);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-neutral-400);
}

/* =====================================================
   FOCUS VISIBLE
   ===================================================== */
:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* =====================================================
   LINKS
   ===================================================== */
a {
    color: var(--color-primary-600);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-700);
}

/* =====================================================
   HEADINGS
   ===================================================== */
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* =====================================================
   ANIMAÇÕES
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-fade-in { animation: fadeIn 0.2s ease-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }
.animate-slide-down { animation: slideDown 0.2s ease-out; }
.animate-scale-in { animation: scaleIn 0.2s ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* =====================================================
   LAYOUT PRINCIPAL
   ===================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
    flex: 1;
    padding: 24px;
    padding-top: calc(var(--topbar-height) + 24px);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--color-neutral-900);
    color: white;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--color-neutral-800);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .sidebar-logo-text {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-neutral-400);
    text-decoration: none;
    transition: all 0.2s;
    min-height: 44px;
    margin: 2px 8px;
    border-radius: 8px;
}

.sidebar-nav-item:hover {
    background-color: var(--color-neutral-800);
    color: white;
}

.sidebar-nav-item.active {
    background-color: var(--color-primary-600);
    color: white;
}

.sidebar-nav-item i,
.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-nav-item span {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .sidebar-nav-item span {
    display: none;
}

.sidebar-footer {
    border-top: 1px solid var(--color-neutral-800);
    padding: 16px 0;
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--color-neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 30;
    transition: left 0.3s ease;
}

.sidebar-collapsed .topbar {
    left: var(--sidebar-collapsed-width);
}

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

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

/* =====================================================
   BOTÕES
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 32px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-primary {
    background-color: var(--color-primary-600);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-700);
}

.btn-secondary {
    background-color: var(--color-neutral-100);
    color: var(--color-neutral-900);
    border: 1px solid var(--color-neutral-300);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--color-neutral-200);
}

.btn-danger {
    background-color: var(--color-danger-600);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--color-danger-700);
}

.btn-success {
    background-color: var(--color-success-600);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: var(--color-success-700);
}

.btn-ghost {
    background: transparent;
    color: var(--color-neutral-700);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--color-neutral-100);
}

.btn-icon {
    padding: 8px;
    min-width: 40px;
}

.btn-icon.btn-sm {
    padding: 6px;
    min-width: 32px;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-neutral-900);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-neutral-200);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* =====================================================
   INPUTS
   ===================================================== */
.form-group {
    margin-bottom: 16px;
}

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

.form-label.required::after {
    content: ' *';
    color: var(--color-danger-500);
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--color-neutral-300);
    border-radius: 8px;
    background: white;
    color: var(--color-neutral-900);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled {
    background-color: var(--color-neutral-50);
    cursor: not-allowed;
}

.form-input.error {
    border-color: var(--color-danger-500);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--color-neutral-500);
    margin-top: 4px;
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-danger-600);
    margin-top: 4px;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background-color: var(--color-primary-100);
    color: var(--color-primary-700);
}

.badge-success {
    background-color: var(--color-success-100);
    color: var(--color-success-700);
}

.badge-warning {
    background-color: var(--color-warning-100);
    color: var(--color-warning-700);
}

.badge-danger {
    background-color: var(--color-danger-100);
    color: var(--color-danger-700);
}

.badge-default {
    background-color: var(--color-neutral-100);
    color: var(--color-neutral-700);
}

/* =====================================================
   TABELAS
   ===================================================== */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-neutral-50);
    border-bottom: 1px solid var(--color-neutral-200);
}

.table td {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--color-neutral-900);
    border-bottom: 1px solid var(--color-neutral-100);
}

.table tbody tr:hover {
    background-color: var(--color-neutral-50);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   MODAIS
   ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-sm { width: 420px; }
.modal-md { width: 640px; }
.modal-lg { width: 840px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-neutral-200);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* =====================================================
   ALERTAS / TOASTS
   ===================================================== */
.alert {
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.alert-success {
    background-color: var(--color-success-50);
    border: 1px solid var(--color-success-200);
    color: var(--color-success-700);
}

.alert-warning {
    background-color: var(--color-warning-50);
    border: 1px solid var(--color-warning-200);
    color: var(--color-warning-700);
}

.alert-danger {
    background-color: var(--color-danger-50);
    border: 1px solid var(--color-danger-200);
    color: var(--color-danger-700);
}

.alert-info {
    background-color: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    color: var(--color-primary-700);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideDown 0.3s ease-out;
}

.toast-success { border-left: 4px solid var(--color-success-500); }
.toast-warning { border-left: 4px solid var(--color-warning-500); }
.toast-danger { border-left: 4px solid var(--color-danger-500); }
.toast-info { border-left: 4px solid var(--color-primary-500); }

/* =====================================================
   LOADING / SPINNER
   ===================================================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-neutral-200);
    border-top-color: var(--color-primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 16px; height: 16px; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* =====================================================
   DROPDOWN
   ===================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: 8px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--color-neutral-700);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--color-neutral-50);
    color: var(--color-neutral-900);
}

.dropdown-divider {
    height: 1px;
    background: var(--color-neutral-200);
    margin: 4px 0;
}

/* =====================================================
   STATS CARDS
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stat-card {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--color-primary-100); color: var(--color-primary-600); }
.stat-icon.success { background: var(--color-success-100); color: var(--color-success-600); }
.stat-icon.warning { background: var(--color-warning-100); color: var(--color-warning-600); }
.stat-icon.danger { background: var(--color-danger-100); color: var(--color-danger-600); }

.stat-content { flex: 1; }
.stat-label { font-size: 0.875rem; color: var(--color-neutral-500); margin-bottom: 4px; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--color-neutral-900); }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--color-neutral-300);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 0.875rem;
    color: var(--color-neutral-500);
    margin-bottom: 24px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--color-neutral-700);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-item:hover {
    background: var(--color-neutral-100);
}

.pagination-item.active {
    background: var(--color-primary-600);
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        left: 0;
    }

    .content-wrapper {
        padding: 16px;
        padding-top: calc(var(--topbar-height) + 16px);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 35;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .sidebar.open ~ .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* =====================================================
   IMPRESSÃO
   ===================================================== */
@media print {
    .sidebar,
    .topbar,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .content-wrapper {
        padding: 0 !important;
        padding-top: 0 !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* =====================================================
   AUTH LAYOUT (Login, Reset Password)
   ===================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-neutral-100);
    padding: 16px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card {
    background: white;
    border: 1px solid var(--color-neutral-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
}

/* Input com ícone */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-neutral-400);
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-neutral-400);
    border-radius: 4px;
}

.input-icon-right:hover {
    color: var(--color-neutral-600);
    background: var(--color-neutral-100);
}

/* Checkbox */
.form-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--color-neutral-300);
    cursor: pointer;
}

.form-checkbox:checked {
    background-color: var(--color-primary-600);
    border-color: var(--color-primary-600);
}

/* Botão outline */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-neutral-300);
    color: var(--color-neutral-700);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-neutral-50);
    border-color: var(--color-neutral-400);
}

/* =====================================================
   UTILITÁRIOS
   ===================================================== */
.text-primary { color: var(--color-primary-600); }
.text-success { color: var(--color-success-600); }
.text-warning { color: var(--color-warning-600); }
.text-danger { color: var(--color-danger-600); }
.text-muted { color: var(--color-neutral-500); }

.bg-primary { background-color: var(--color-primary-600); }
.bg-success { background-color: var(--color-success-600); }
.bg-warning { background-color: var(--color-warning-600); }
.bg-danger { background-color: var(--color-danger-600); }

.touch-target {
    min-height: 44px;
    min-width: 44px;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
