/* Auto Prime Torque Certo - Light Theme Styles */

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Sidebar scrollbar */
#sidebar ::-webkit-scrollbar-thumb { background: #334155; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-in { animation: slideIn 0.3s ease-out; }
.animate-slide-down { animation: slideDown 0.2s ease-out; }
.toast-enter { animation: toast-in 0.3s ease-out; }
.toast-exit { animation: toast-out 0.3s ease-in forwards; }

/* Sidebar nav items (dark sidebar) */
.nav-item { transition: all 0.15s ease; color: #94a3b8; }
.nav-item:hover { background: #1e293b; color: #e2e8f0; }
.nav-item.active { background: rgba(37,99,232,0.15); color: #60a5fa; border-right: 2px solid #2563eb; }

/* Stat card */
.stat-card { position: relative; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Table */
.data-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-weight: 600; }
.data-table td { font-size: 0.8125rem; color: #475569; }
.data-table tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #f8fafc; }

/* Status badges */
.badge { font-size: 0.6875rem; font-weight: 600; padding: 2px 10px; border-radius: 9999px; display: inline-flex; align-items: center; gap: 4px; }
.badge::before { content:''; width: 6px; height: 6px; border-radius: 50%; }
.badge-pendente { background: #fef3c7; color: #b45309; } .badge-pendente::before { background: #f59e0b; }
.badge-aprovado { background: #dcfce7; color: #15803d; } .badge-aprovado::before { background: #22c55e; }
.badge-rejeitado { background: #fee2e2; color: #b91c1c; } .badge-rejeitado::before { background: #ef4444; }
.badge-convertido { background: #dbeafe; color: #1d4ed8; } .badge-convertido::before { background: #2563eb; }
.badge-expirado { background: #f1f5f9; color: #64748b; } .badge-expirado::before { background: #94a3b8; }
.badge-aberta { background: #dbeafe; color: #1d4ed8; } .badge-aberta::before { background: #3b82f6; }
.badge-em_andamento { background: #fef3c7; color: #b45309; } .badge-em_andamento::before { background: #f59e0b; }
.badge-aguardando_peca { background: #f3e8ff; color: #7e22ce; } .badge-aguardando_peca::before { background: #a855f7; }
.badge-concluida { background: #dcfce7; color: #15803d; } .badge-concluida::before { background: #22c55e; }
.badge-cancelada { background: #fee2e2; color: #b91c1c; } .badge-cancelada::before { background: #ef4444; }
.badge-agendado { background: #dbeafe; color: #1d4ed8; } .badge-agendado::before { background: #3b82f6; }
.badge-confirmado { background: #dcfce7; color: #15803d; } .badge-confirmado::before { background: #22c55e; }
.badge-em_atendimento { background: #fef3c7; color: #b45309; } .badge-em_atendimento::before { background: #f59e0b; }
.badge-pago { background: #dcfce7; color: #15803d; } .badge-pago::before { background: #22c55e; }
.badge-atrasado { background: #fee2e2; color: #b91c1c; } .badge-atrasado::before { background: #ef4444; }
.badge-receita { background: #dcfce7; color: #15803d; } .badge-receita::before { background: #22c55e; }
.badge-despesa { background: #fee2e2; color: #b91c1c; } .badge-despesa::before { background: #ef4444; }

/* Form inputs */
.form-input { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #1e293b; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.form-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,232,0.12); }
.form-input::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: 0.75rem; font-weight: 500; color: #64748b; margin-bottom: 0.25rem; }
.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='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.8125rem; font-weight: 500; transition: all 0.15s; cursor: pointer; border: none; }
.btn-primary { background: #2563eb; color: white; box-shadow: 0 1px 2px rgba(37,99,232,0.3); } .btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #fff; color: #475569; border: 1px solid #e2e8f0; } .btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-danger { background: #fff; color: #dc2626; border: 1px solid #fecaca; } .btn-danger:hover { background: #fef2f2; }
.btn-success { background: #fff; color: #16a34a; border: 1px solid #bbf7d0; } .btn-success:hover { background: #f0fdf4; }
.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
.btn-lg { padding: 0.625rem 1.5rem; font-size: 0.875rem; }

/* Card */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

/* Tabs */
.tab-btn { padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500; color: #64748b; border-bottom: 2px solid transparent; transition: all 0.15s; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; }
.tab-btn:hover { color: #1e293b; }
.tab-btn.active { color: #2563eb; border-bottom-color: #2563eb; }

/* Responsive sidebar */
@media (max-width: 1023px) {
  #sidebar { position: fixed; left: -100%; top: 0; bottom: 0; z-index: 30; }
  #sidebar.open { left: 0; }
}

/* Chart bar */
.chart-bar { transition: height 0.5s ease-out; }
