/**
 * HELPDESK VENDDOR - STYLESHEET PRINCIPAL
 * Arquivo de estilos customizado do sistema HelpDesk
 * Versão: 1.0
 */

/* ============================================================================
   VARIÁVEIS CSS - CORES PRINCIPAIS VENDDOR
   ========================================================================== */
:root {
    /* Cores Principais Venddor */
    --venddor-primary: #1a1a4d;
    --venddor-primary-light: #4a5db8;
    --venddor-primary-dark: #0d0d26;
    --venddor-gradient-start: #1a1a4d;
    --venddor-gradient-end: #4a5db8;
    
    /* Cores de Status */
    --status-aberto: #FFA500;
    --status-aberto-light: #FFD280;
    --status-analise-suporte: #4A90E2;
    --status-analise-suporte-light: #A4CFFF;
    --status-analise-dev: #7B68EE;
    --status-analise-dev-light: #BDB4FF;
    --status-aguardando-cliente: #FFD700;
    --status-aguardando-cliente-light: #FFEB80;
    --status-aguardando-deploy: #9370DB;
    --status-aguardando-deploy-light: #C9B8F0;
    --status-staging: #FFA500;
    --status-staging-light: #FFD280;
    --status-resolvido: #32CD32;
    --status-resolvido-light: #96E896;
    --status-fechado: #808080;
    --status-fechado-light: #C0C0C0;
    --status-work-not-started: #A9A9A9;
    
    /* Cores de Prioridade */
    --priority-critica: #DC3545;
    --priority-critica-light: #F19CA5;
    --priority-alta: #FD7E14;
    --priority-alta-light: #FFBE8C;
    --priority-normal: #6C757D;
    --priority-normal-light: #B6BBC0;
    --priority-baixa: #17A2B8;
    --priority-baixa-light: #8BD1DC;
    
    /* Cores de SLA */
    --sla-ok: #28A745;
    --sla-ok-light: #94D3A2;
    --sla-warning: #FFC107;
    --sla-warning-light: #FFE083;
    --sla-breached: #DC3545;
    --sla-breached-light: #F19CA5;
    
    /* Cores Neutras */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Cores Funcionais */
    --success: #10B981;
    --success-light: #6EE7B7;
    --error: #EF4444;
    --error-light: #FCA5A5;
    --warning: #F59E0B;
    --warning-light: #FCD34D;
    --info: #3B82F6;
    --info-light: #93C5FD;
    
    /* Backgrounds */
    --bg-main: var(--white);
    --bg-card: var(--white);
    --bg-sidebar: var(--gray-50);
    --bg-hover: var(--gray-100);
    
    /* Borders */
    --border-color: var(--gray-200);
    --border-light: var(--gray-300);
    --border-dark: var(--gray-400);
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TIPOGRAFIA - HEADINGS
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: 2rem;      /* 32px */
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;    /* 24px */
}

h3 {
    font-size: 1.25rem;   /* 20px */
}

h4 {
    font-size: 1.125rem;  /* 18px */
}

h5 {
    font-size: 1rem;      /* 16px */
}

h6 {
    font-size: 0.875rem;  /* 14px */
}

/* ============================================================================
   TIPOGRAFIA - BODY TEXT
   ========================================================================== */
p {
    margin-bottom: 1rem;
}

a {
    color: var(--venddor-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--venddor-primary-light);
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

small {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================================================
   CLASSES AUXILIARES DE TIPOGRAFIA
   ========================================================================== */
.text-xs { font-size: 0.75rem; }      /* 12px */
.text-sm { font-size: 0.875rem; }     /* 14px */
.text-base { font-size: 1rem; }       /* 16px */
.text-lg { font-size: 1.125rem; }     /* 18px */
.text-xl { font-size: 1.25rem; }      /* 20px */
.text-2xl { font-size: 1.5rem; }      /* 24px */
.text-3xl { font-size: 1.875rem; }    /* 30px */

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--venddor-primary); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }

/* ============================================================================
   BOTÕES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.5;
}

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--venddor-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

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

.btn-success:hover:not(:disabled) {
    background: #0D9668;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-danger:hover:not(:disabled) {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--venddor-primary);
    color: var(--venddor-primary);
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================================================
   CARDS
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-50);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
}

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

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.card-clickable {
    cursor: pointer;
}

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

/* Card de Métrica (Dashboard) */
.metric-card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.metric-card .metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.metric-card .metric-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.metric-card.metric-success { background: var(--success-light); border-color: var(--success); }
.metric-card.metric-info { background: #E0F2FE; border-color: var(--info); }
.metric-card.metric-warning { background: var(--warning-light); border-color: var(--warning); }
.metric-card.metric-neutral { background: var(--gray-100); border-color: var(--gray-300); }

/* ============================================================================
   BADGES DE STATUS
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badges de Status de Ticket */
.badge-aberto {
    background: var(--status-aberto);
    color: var(--white);
}

.badge-em-analise-suporte,
.badge-em_analise_suporte {
    background: var(--status-analise-suporte);
    color: var(--white);
}

.badge-em-analise-desenvolvimento,
.badge-em_analise_desenvolvimento {
    background: var(--status-analise-dev);
    color: var(--white);
}

.badge-aguardando-cliente,
.badge-aguardando_cliente {
    background: var(--status-aguardando-cliente);
    color: var(--gray-900);
}

.badge-aguardando-deploy,
.badge-aguardando_deploy {
    background: var(--status-aguardando-deploy);
    color: var(--white);
}

.badge-staging {
    background: var(--status-staging);
    color: var(--white);
}

.badge-resolvido {
    background: var(--status-resolvido);
    color: var(--white);
}

.badge-fechado {
    background: var(--status-fechado);
    color: var(--white);
}

.badge-work-not-started,
.badge-work_not_started {
    background: var(--status-work-not-started);
    color: var(--white);
}

/* Badges de Prioridade */
.badge-priority-critica {
    background: var(--priority-critica);
    color: var(--white);
}

.badge-priority-alta {
    background: var(--priority-alta);
    color: var(--white);
}

.badge-priority-normal {
    background: var(--priority-normal);
    color: var(--white);
}

.badge-priority-baixa {
    background: var(--priority-baixa);
    color: var(--white);
}

/* ============================================================================
   FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--venddor-primary);
    box-shadow: 0 0 0 3px rgba(26, 26, 77, 0.1);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

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

.form-error {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--error);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Checkbox e Radio */
.form-checkbox,
.form-radio {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-checkbox-label,
.form-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 400;
}

/* ============================================================================
   TABELAS
   ========================================================================== */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--gray-800);
}

.table tbody tr:hover {
    background: var(--bg-hover);
    cursor: pointer;
}

/* Colunas ordenáveis */
.table th.sortable {
    cursor: pointer;
    user-select: none;
}

.table th.sortable:hover {
    background: var(--gray-100);
}

.table th.sortable::after {
    content: ' ↕';
    color: var(--gray-400);
    font-size: 0.75rem;
}

.table th.sorted-asc::after {
    content: ' ↑';
    color: var(--venddor-primary);
}

.table th.sorted-desc::after {
    content: ' ↓';
    color: var(--venddor-primary);
}

/* ============================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: var(--z-sticky);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    background: var(--gray-100);
    color: var(--venddor-primary);
    text-decoration: none;
}

.sidebar-item.sidebar-active {
    background: var(--venddor-primary-light);
    color: var(--white);
    font-weight: 600;
    border-left: 4px solid var(--venddor-primary);
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* ============================================================================
   MODAL - Usando Bootstrap Modal, então removemos CSS customizado conflitante
   ========================================================================== */
/* Estilos customizados para modais personalizados (se necessário no futuro)
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    animation: fadeIn var(--transition-fast);
}

.custom-modal {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp var(--transition-normal);
}
*/

/* Ajustes específicos para modais Bootstrap */
.modal {
    z-index: 1055 !important; /* Maior que sidebar */
}

.modal-backdrop {
    z-index: 1050 !important; /* Maior que sidebar mas menor que modal */
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
}

/* ============================================================================
   GRID SYSTEM
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ============================================================================
   UTILITIES
   ========================================================================== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

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

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

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

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

.fade-in {
    animation: fadeIn var(--transition-normal);
}

.slide-up {
    animation: slideUp var(--transition-normal);
}

.slide-down {
    animation: slideDown var(--transition-normal);
}

.spin {
    animation: spin 1s linear infinite;
}

/* ============================================================================
   HOVER EFFECTS
   ========================================================================== */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-md);
}

/* ============================================================================
   RESPONSIVE - BREAKPOINTS
   ========================================================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.8125rem;
    }
    
    .modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}
/* ============================================================================
   UI ENHANCEMENTS - SPINNER, TOAST, MODAIS
   ============================================================================ */

/* Spinner - Loading Indicator */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(26, 26, 77, 0.1);
    border-top-color: #1a1a4d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(26, 26, 77, 0.1);
    border-top-color: #1a1a4d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Container */
#toast-container {
    max-width: 400px;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toast-close {
    cursor: pointer;
    transition: opacity 0.2s;
}

/* Animações de fade in/out */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in;
}

/* Animações de slide */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.slide-out-right {
    animation: slideOutRight 0.3s ease-in;
}

/* Loading overlay */
#loading-overlay {
    backdrop-filter: blur(2px);
}

/* Confirm Modal */
#confirm-modal {
    backdrop-filter: blur(2px);
}

/* Loading states para elementos */
.element-loader {
    backdrop-filter: blur(1px);
}

/* Skeleton loading (para conteúdo) */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Pulse animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Bounce animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Shake animation (para erros) */
.shake {
    animation: shake 0.5s;
}

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

/* Utilities */
.transition-all-fast {
    transition: all 0.15s ease;
}

.transition-all-normal {
    transition: all 0.3s ease;
}

.transition-all-slow {
    transition: all 0.5s ease;
}

/* Dark mode utilities (se implementar) */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-800 {
        background-color: #1f2937;
    }
    
    .dark\:text-white {
        color: #ffffff;
    }
    
    .dark\:border-gray-700 {
        border-color: #374151;
    }
}
