/* /var/www/html/certto/helpdesk/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* Base Overrides for Premium Feel (No Generic SaaS Defaults) */
:root {
  --color-brand-blue: #1f5293;
  --color-brand-orange: #e77817;
  --color-bg-light: #fdfcf9; /* Very light warm neutral */
  --color-bg-card: #ffffff;
  --color-bg-input: #ffffff;
  --color-border-card: rgba(0, 0, 0, 0.08);
  --color-text-dark: #111111;
  --color-text-muted: #6b7280;
}

html.dark {
  --color-bg-light: #0f172a; /* Deep dark slate */
  --color-bg-card: #1e293b;  /* Elevated card background */
  --color-bg-input: #0f172a;
  --color-border-card: rgba(255, 255, 255, 0.12);
  --color-text-dark: #f8fafc;
  --color-text-muted: #94a3b8;
  color-scheme: dark;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

/* Sharp UI Design overrides (Mandatory No Rounded Corners for Premium Brutalist feel) */
.sharp-card {
  border-radius: 0px; 
  border: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}
.sharp-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0px rgba(31, 82, 147, 0.1); 
}

.sharp-input {
  border-radius: 0px;
  border: 1px solid #e5e5e5;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  background: #fff;
}
.sharp-input:focus {
  outline: none;
  border-color: var(--color-brand-blue);
  box-shadow: 4px 4px 0px rgba(231, 120, 23, 0.1);
}

/* Buttons with spring physics and flat brutalist aesthetic */
.btn-primary {
  background-color: var(--color-brand-blue);
  color: white;
  border-radius: 0px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  transform: scale(0.98);
}

/* Certto Standard Buttons */
.btn-certto {
    background-color: #1f5293 !important;
    color: white !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 17px 28px !important;
    border: 2px solid #111827 !important;
    box-shadow: 6px 6px 0px #e77817 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-height: 56px !important;
}

.btn-certto:hover {
    box-shadow: 2px 2px 0px #e77817 !important;
    transform: translate(4px, 4px) !important;
}

/* Botão Secundário / Alt (Laranja com Sombra Azul) */
.btn-certto-alt {
    background-color: #e77817;
    color: #fff;
    border: 2px solid #e77817;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 17px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 0 #1f5293;
    font-size: 13px;
    min-height: 56px;
}

.btn-certto-alt:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1f5293;
    background-color: #f38a2b;
}

.btn-certto-alt:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #1f5293;
}

/* Estilo para botões secundários/Limpar */
.btn-certto-outline {
    background-color: transparent !important;
    color: #1f5293 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 10px 22px !important;
    border: 2px solid #1f5293 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.btn-certto-outline:hover {
    background-color: #1f5293 !important;
    color: white !important;
}

.btn-accent {
  background-color: var(--color-brand-orange);
  color: white;
  border-radius: 0px;
  font-weight: 600;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Animations Core */
.animate-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }


/* ==========================================================================
   Modo Dark Global (Brutalist Dark Theme System)
   ========================================================================== */

/* 1. Fundo da Página e Containers Principais */
html.dark body,
html.dark main {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

/* 2. Cards, Painéis e Divs */
html.dark .sharp-card,
html.dark .bg-white,
html.dark .bg-\[\#fdfcf9\],
html.dark .bg-gray-50,
html.dark .bg-gray-100 {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Elementos escuros internos para contraste elevado */
html.dark .sharp-card .bg-gray-50,
html.dark .sharp-card .bg-gray-100,
html.dark .sharp-card .bg-gray-50\/50,
html.dark .bg-gray-50\/50,
html.dark form .bg-gray-50,
html.dark form .bg-gray-100,
html.dark form .bg-blue-50,
html.dark form .bg-orange-50 {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Card informativo no Dashboard */
html.dark .bg-gray-900 {
  background-color: #090d16 !important;
  color: #ffffff !important;
}

/* 3. Tipografia e Cores de Texto */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-black {
  color: #f8fafc !important;
}

html.dark p,
html.dark span,
html.dark label,
html.dark div,
html.dark td,
html.dark th,
html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-gray-400 {
  color: #94a3b8;
}

html.dark a.text-gray-900,
html.dark a.text-gray-800,
html.dark a.text-gray-700,
html.dark a.text-gray-600 {
  color: #f8fafc !important;
}
html.dark a.text-gray-900:hover,
html.dark a.text-gray-800:hover,
html.dark a.text-gray-700:hover,
html.dark a.text-gray-600:hover {
  color: #e77817 !important;
}

/* 4. Formulários, Inputs, Selects e Textareas */
html.dark input,
html.dark textarea,
html.dark select,
html.dark [contenteditable="true"] {
  caret-color: #ffffff !important;
}

html.dark .sharp-input,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark input[type="date"],
html.dark select,
html.dark textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
  caret-color: #ffffff !important;
}

html.dark select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

html.dark input:disabled,
html.dark input.cursor-not-allowed {
  background-color: #1e293b !important;
  color: #64748b !important;
}

/* Select2 no Modo Dark */
html.dark .select2-container--default .select2-selection--single {
  background-color: #0f172a !important;
  border-color: #334155 !important;
}
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc !important;
}
html.dark .select2-dropdown {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html.dark .select2-results__option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}
html.dark .select2-results__option--highlighted[aria-selected] {
  background-color: #1f5293 !important;
  color: #ffffff !important;
}

/* 5. Tabelas e Listagens */
html.dark table {
  background-color: transparent !important;
}

html.dark table thead tr {
  background-color: #1f5293 !important;
  color: #ffffff !important;
}

html.dark table tbody tr {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark table tbody tr:nth-child(even) {
  background-color: #162032 !important;
}

html.dark table tbody tr:hover {
  background-color: #273549 !important;
}

html.dark table td,
html.dark table th {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 6. Badges e Destaques Coloridos no Modo Dark */
html.dark .bg-orange-50,
html.dark .bg-orange-100 {
  background-color: rgba(231, 120, 23, 0.2) !important;
  color: #fb923c !important;
  border-color: rgba(231, 120, 23, 0.4) !important;
}

html.dark .bg-green-50,
html.dark .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}

html.dark .bg-blue-50,
html.dark .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

html.dark .bg-yellow-50,
html.dark .bg-yellow-100 {
  background-color: rgba(234, 179, 8, 0.2) !important;
  color: #facc15 !important;
  border-color: rgba(234, 179, 8, 0.4) !important;
}

html.dark .bg-red-50,
html.dark .bg-red-100 {
  background-color: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

html.dark .period-btn {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}
html.dark .period-btn:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}
html.dark .period-btn.active {
  background-color: #1f5293 !important;
  color: #ffffff !important;
  border-color: #1f5293 !important;
}

/* 7. Sidebar, Headers, Nav, Dropdowns e Modais */
html.dark header,
html.dark aside,
html.dark nav,
html.dark #sidebarOverlay,
html.dark #notifDropdown,
html.dark #ticketPanel,
html.dark #aiCopilotModal > div,
html.dark #newTicketModal > div {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Dropdown e Itens de Notificação no Modo Dark */
html.dark #notifDropdown {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}

html.dark #notifDropdown > div:first-child {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark #notifList > div {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark #notifList > div:hover {
  background-color: #334155 !important;
}

html.dark #notifList p.text-brand-blue {
  color: #60a5fa !important;
}

html.dark #notifList p.text-gray-900 {
  color: #f8fafc !important;
}

html.dark #notifList p.text-gray-400 {
  color: #94a3b8 !important;
}

/* Terminal de Logs Técnicos */
html.dark #techLogsContainer {
  background-color: #020617 !important;
  color: #4ade80 !important;
}
