@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@600;700;800;900&display=swap');

:root {
  --isa-green: #008055;
  --isa-green-light: #00a66e;
  --isa-green-dark: #005a3c;
  --isa-dark: #002118;
  --isa-gold: #b8923a;
  --isa-gold-light: #d0aa53;
  --paper: #f4f1ea;
  --sage: #f0f3ee;
  --clay: #a8482f;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f9f7;
  color: #1e293b;
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: 'Manrope', 'Inter', sans-serif;
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Efeito de Vidro / Backdrop */
.glass-header {
  background: rgba(0, 33, 24, 0.95);
  backdrop-filter: blur(8px);
}

/* Transições de abas */
.tab-content {
  animation: fadeIn 0.2s ease-in-out;
}

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

/* Toast flutuante */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Células da Grelha de Horários */
.timetable-grid {
  display: grid;
  grid-template-columns: 140px repeat(6, minmax(180px, 1fr));
  gap: 1px;
  background-color: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  overflow-x: auto;
}

.timetable-header {
  background-color: #002118;
  color: white;
  padding: 0.75rem 0.5rem;
  font-weight: 700;
  text-align: center;
  font-size: 0.875rem;
}

.timetable-time-cell {
  background-color: #f8fafc;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: #475569;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timetable-slot {
  background-color: #ffffff;
  padding: 0.5rem;
  min-height: 85px;
  position: relative;
  transition: background-color 0.15s;
}

.timetable-slot:hover {
  background-color: #f8fafc;
}

.timetable-card {
  border-left: 4px solid #008055;
  background-color: #f0fdf4;
  border-radius: 0.375rem;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.75rem;
  line-height: 1.25;
}

.timetable-card.card-lab {
  border-left-color: #b8923a;
  background-color: #fefce8;
}

.timetable-card.card-anf {
  border-left-color: #0284c7;
  background-color: #f0f9ff;
}

/* Impressão Oficial */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  .no-print, header, nav, #toast-container, button, .btn-action {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .timetable-grid {
    border: 1px solid #000 !important;
    gap: 0 !important;
  }
  .timetable-header {
    background-color: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #000 !important;
  }
  .timetable-slot {
    border: 1px solid #ddd !important;
  }
  .timetable-card {
    border: 1px solid #888 !important;
    background: transparent !important;
  }
}
