/* ======================================================
   TICKETFLOW STYLESHEET
   Centrale styling voor de hele applicatie

   Structuur:
   1. Basis / layout
   2. Topbar
   3. Formulieren
   4. Knoppen
   5. Feedback / meldingen
   6. Filters / toolbars
   7. Tickets (overzicht)
   8. Ticket detail
   9. Reacties
   10. Users
   11. Login
   12. Responsive
   13. Dashboard
   14. Ticket detail compacte actieblokken

   Belangrijk:
   - Geen inline CSS gebruiken
   - Alles via dit centrale bestand
   - Secties duidelijk gescheiden houden
   - Dubbele of oude code verwijderen
====================================================== */

/* ======================================================
   1. BASIS / PAGINA
   Algemene standaardopmaak voor de hele applicatie
====================================================== */

body {
  font-family: Arial, sans-serif !important;
  background: #f4f6f8;
  margin: 0;
  padding: 0;
  color: #1f2a37;
}

h2 {
  margin-top: 0;
}

.muted {
  color: #5b6777;
  font-size: 14px;
}

.empty-state {
  color: #5b6777;
  font-style: italic;
  margin: 0;
}

.section-title {
  margin-bottom: 14px;
}

/* ======================================================
   2. TOPBAR
   Bovenbalk met titel en actieknoppen
====================================================== */

.topbar {
  background: #2f6fed;
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar h1,
.topbar h2 {
  margin: 0;
  font-size: 24px;
}

.topbar .actions {
  display: flex;
  gap: 10px;
}

.topbar button,
.topbar-left button {
  background: white;
  color: #2f6fed;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.topbar button:hover,
.topbar-left button:hover {
  background: #eef3ff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ======================================================
   3. ALGEMENE LAYOUT
   Containers, kaarten en standaard pagina-opbouw
====================================================== */

.container {
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.5;
  color: #374151;
}

/* ======================================================
   4. FORMULIEREN
   Invoervelden, labels, selecties en formuliergroepen
====================================================== */

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1f2a37;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

/* ======================================================
   5. KNOPPEN
   Actieknoppen en knopgroepen
====================================================== */

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

button.action {
  background: #dfe9ff;
  color: #2f6fed;
  border: 1px solid #b9cdfa;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

button.action:hover {
  background: #1f57c7;
}

button.small {
  margin-top: 0;
  padding: 8px 12px;
  background: #2f6fed;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

button.small:hover {
  background: #1f57c7;
}

/* ======================================================
   6. FEEDBACK / RESULTATEN
   Meldingen onder formulieren en acties
====================================================== */

#createResult,
#statusResult,
#priorityResult,
#assignResult,
#reactionResult,
#result {
  margin-top: 12px;
  font-size: 14px;
}

/* ======================================================
   7. MELDINGEN
   Herbruikbare feedbackblokken voor succes en fouten
====================================================== */

.message {
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.message-success {
  background-color: #e6f9f0;
  color: #1b7f4c;
  border: 1px solid #b6e6d2;
}

.message-error {
  background-color: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c0;
}

/* ======================================================
   8. FILTERS / TOOLBARS
   Filtervelden, zoekbalken, checkboxes en hulpmenu's
====================================================== */

.filter-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-box {
  flex: 1;
  min-width: 160px;
}

.filter-box:first-child {
  flex: 2;
}

.filter-box label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 14px;
}

.filter-box input,
.filter-box select {
  padding: 6px 10px;
  margin-top: 0;
  font-size: 14px;
}

.ticket-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ticket-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ticket-toggle-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5b6777;
}

.checkbox-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
}

/* ======================================================
   9. TICKET OVERZICHT
   Ticketkaarten, badges en metadata in lijstweergave
====================================================== */

#tickets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticket-item {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fbfcfe;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.ticket-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ticket-title {
  color: #2f6fed;
  font-weight: bold;
  font-size: 18px;
}

.ticket-meta,
.ticket-submeta {
  color: #5b6777;
  font-size: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ticket-meta {
  margin-bottom: 8px;
}

/* ======================================================
   10. BADGES
   Status- en prioriteitsbadges voor tickets en details
====================================================== */

.ticket-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.status-nieuw {
  background: #e8f0ff;
  color: #2f6fed;
}

.status-in-behandeling {
  background: #fff4db;
  color: #9a6700;
}

.status-wacht-op-gebruiker {
  background: #fdeaea;
  color: #b42318;
}

.status-opgelost {
  background: #e7f7ed;
  color: #157347;
}

.status-gesloten {
  background: #eef1f5;
  color: #5b6777;
}

.priority-laag {
  background: #eef1f5;
  color: #5b6777;
}

.priority-normaal {
  background: #e8f0ff;
  color: #2f6fed;
}

.priority-hoog {
  background: #fff1db;
  color: #b26b00;
}

.priority-spoed {
  background: #fdeaea;
  color: #b42318;
}

/* ======================================================
   11. TICKET DETAIL
   Beschrijving, detailblokken en ticketgegevens
====================================================== */

.ticket-description-box {
  background: #f4f6f8;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ticket-description-content {
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: block;
}

.detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-box {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  min-width: 140px;
  flex: 1;
}

.detail-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 13px;
  font-weight: 400;
  color: #1f2a37;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.action-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

/* ======================================================
   12. REACTIES
   Reactielijst op de ticketdetailpagina
====================================================== */

#reactions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reaction-item {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fbfcfe;
  line-height: 1.5;
}

/* ======================================================
   13. USERS
   Gebruikersbeheer, formulier, status en gebruikerslijst
====================================================== */

.user-form {
  max-width: 500px;
}

.user-form input,
.user-form select {
  padding: 3px 5px;
  font-size: 12px;
  height: 32px;
}

.user-form label {
  font-size: 14px;
}

.user-form .form-group {
  margin-bottom: 10px;
}

#users {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-item {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fbfcfe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.user-left {
  flex: 1;
  min-width: 260px;
}

.user-name {
  font-weight: 600;
  color: #1f2a37;
  margin-bottom: 4px;
}

.user-meta {
  color: #5b6777;
  font-size: 14px;
  line-height: 1.5;
}

.user-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
}

.status-active {
  background: #e7f7ed;
  color: #157347;
}

.status-inactive {
  background: #fdeaea;
  color: #b42318;
}

/* ======================================================
   14. LOGIN
   Opmaak voor het inlogscherm en het loginformulier
====================================================== */

body.login-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f6f8;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-box h1 {
  margin-top: 0;
  text-align: center;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  box-sizing: border-box;
}

.login-box button {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #2f6fed;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.login-box button:hover {
  background: #1f57c7;
}

.login-box #result {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}

/* ======================================================
   15. RESPONSIVE
   Aanpassingen voor kleinere schermen
====================================================== */

@media (max-width: 900px) {
  .action-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .action-grid-compact {
    grid-template-columns: 1fr;
  }

  .compact-action-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .compact-save-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .filter-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box,
  .filter-box:first-child {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* ======================================================
   16. DASHBOARD STATUSNIVEAUS
   Kleuren voor normale, waarschuwende en kritieke dashboardblokken
====================================================== */

.dashboard-state-normal {
  border-left: 6px solid #16a34a;
  background: #f0fdf4;
}

.dashboard-state-warning {
  border-left: 6px solid #f59e0b;
  background: #fffbeb;
}

.dashboard-state-danger {
  border-left: 6px solid #dc2626;
  background: #fef2f2;
}

/* ======================================================
   17. DASHBOARD LAYOUT
   Tegels en overzicht voor dashboardpagina
====================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.dashboard-tile {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.dashboard-label {
  font-size: 14px;
  color: #5b6777;
  margin-bottom: 6px;
}

.dashboard-value {
  font-size: 28px;
  font-weight: bold;
  color: #1f2a37;
}

/* ======================================================
   18. DASHBOARD AANDACHTSPUNTEN
   Compacte waarschuwingstegels op dashboard
====================================================== */

.dashboard-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.dashboard-alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.dashboard-alert-label {
  font-size: 14px;
  color: #5b6777;
}

.dashboard-alert-value {
  font-weight: bold;
  font-size: 16px;
}

/* ======================================================
   19. DASHBOARD NAVIGATIE
   Navigatieknoppen onder dashboardblokken
====================================================== */

.dashboard-nav-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dashboard-nav-button {
  padding: 10px 16px;
  background: #2f6fed;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.dashboard-nav-button:hover {
  background: #1f57c7;
}

/* ======================================================
   20. DASHBOARD STATUS OVERRIDES
   Zorgt dat dashboard statuskleuren zichtbaar blijven
====================================================== */

.dashboard-tile.dashboard-state-normal,
.dashboard-alert.dashboard-state-normal {
  border-left: 6px solid #16a34a !important;
  background: #f0fdf4 !important;
}

.dashboard-tile.dashboard-state-warning,
.dashboard-alert.dashboard-state-warning {
  border-left: 6px solid #f59e0b !important;
  background: #fffbeb !important;
}

.dashboard-tile.dashboard-state-danger,
.dashboard-alert.dashboard-state-danger {
  border-left: 6px solid #dc2626 !important;
  background: #fef2f2 !important;
}

/* ======================================================
   21. DASHBOARD EXTRA VISUELE ACCENTEN
   Maakt kritieke en waarschuwingswaarden beter zichtbaar
====================================================== */

.dashboard-state-warning .dashboard-value,
.dashboard-state-warning .dashboard-alert-value {
  color: #b45309;
}

.dashboard-state-danger .dashboard-value,
.dashboard-state-danger .dashboard-alert-value {
  color: #b91c1c;
}

/* ======================================================
   22. DASHBOARD INSTELLINGEN
   Opmaak voor beheer van dashboard thresholds
====================================================== */

.dashboard-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-setting-row:last-child {
  border-bottom: none;
}

.dashboard-setting-name {
  flex: 1;
  min-width: 220px;
  font-weight: 600;
  color: #1f2a37;
  padding-top: 8px;
}

.dashboard-setting-inputs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-setting-inputs .form-group {
  margin-bottom: 0;
  min-width: 180px;
}

.dashboard-setting-inputs label {
  font-size: 14px;
}

.dashboard-setting-inputs input {
  width: 100%;
  max-width: 180px;
}

/* ======================================================
   23. DASHBOARD INSTELLINGEN LIJST
   Extra opmaak voor instellingencontainer
====================================================== */

.dashboard-settings-list {
  margin-top: 20px;
}

.dashboard-settings-list .dashboard-setting-row:first-child {
  border-top: 1px solid #e5e7eb;
}

/* ======================================================
   24. DASHBOARD INTERACTIE
   Hover- en klikgedrag voor dashboardblokken
====================================================== */

.dashboard-tile,
.dashboard-alert {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.dashboard-tile:hover,
.dashboard-alert:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-tile:active,
.dashboard-alert:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ======================================================
   25. TICKET DETAIL - COMPACTE ACTIEBLOKKEN
   Compacte tegelrij voor status, prioriteit, toewijzing en categorie
====================================================== */

.action-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.compact-action-box {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 6px 8px;
}

.compact-action-box h3 {
  font-size: 13px;
  margin: 0 0 4px 0;
}

.compact-action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
}

.compact-action-row select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  font-size: 13px;
  height: 30px;
}

.compact-save-btn {
  margin: 0;
  padding: 4px 10px;
  height: 30px;
  font-size: 12px;
  white-space: nowrap;
}

.compact-action-box p[id$="Result"] {
  margin: 4px 0 0 0;
  min-height: 12px;
  font-size: 11px;
  line-height: 1.2;
}

/* =========================================================
   COPY ROWS (Bedrijfsgegevens)
========================================================= */

.copy-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.copy-label {
  font-weight: 600;
  color: #1f2a37;
}

.copy-value {
  font-family: monospace;
  color: #1f2a37;
}

.copy-btn {
  background: #eef3ff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 8px;
}

.copy-btn:hover {
  background: #dbe7ff;
}

/* ======================================================
   26. TICKET DETAIL - BEDRIJFSGEGEVENS MET KOPIEERKNOPPEN
   Opmaak voor nieuwe klant / nieuwe leverancier
====================================================== */

.detail-extra-block {
  background: #fbfcfe;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 14px 0;
}

.detail-extra-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2a37;
}

.detail-extra-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copy-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}

.copy-row:last-child {
  border-bottom: none;
}

.copy-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
}

.copy-value {
  font-size: 13px;
  font-weight: 400;
  color: #1f2a37;
  word-break: break-word;
}

.copy-btn {
  background: #eef3ff;
  color: #2f6fed;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.copy-btn:hover {
  background: #dfe9ff;
}

@media (max-width: 700px) {
  .copy-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .copy-btn {
    width: fit-content;
  }
}

.detail-extra-subblock {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #eef2f7;
}

.detail-extra-subtitle {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2a37;
}

/* =========================================================
   BEDRIJFSGEGEVENS BLOKKEN (DETAIL PAGINA)
========================================================= */

.detail-extra-block {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9fbfd;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
}

.detail-extra-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2f6fed;
}

/* Rij layout */
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

.copy-row:last-child {
  border-bottom: none;
}

/* Label links */
.copy-label {
  font-weight: 500;
  color: #5b6777;
  min-width: 180px;
}

/* Waarde */
.copy-value {
  flex: 1;
  color: #1f2a37;
  padding: 0 10px;
}

/* Copy knop */
.copy-btn {
  background: #eef4ff;
  border: 1px solid #d0dcff;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  transition: 0.2s;
}

.copy-btn:hover {
  background: #dbe7ff;
}

/* Contactpersoon blok */
.contact-block {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #e3eaf3;
  border-radius: 8px;
  background: #ffffff;
}

.contact-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2f6fed;
}

/* ===============================
   SECTIE SCHEIDING
================================= */
.detail-extra-title {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #e3eaf3;
}

/* eerste titel geen lijn */
.detail-extra-block > .detail-extra-title:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* ===============================
   BETERE SPACING
================================= */
.detail-extra-content {
  margin-bottom: 10px;
}

/* ===============================
   CONTACTPERSONEN OPVALLENDER
================================= */
.contact-block {
  margin-top: 15px;
  padding: 12px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fbff;
}

/* ===============================
   LABELS STRAKKER
================================= */
.copy-label {
  font-weight: 600;
}

.detail-extra-title {
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =========================================================
   IMAGE VIEWER (POPUP)
========================================================= */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  background: #fff;
  padding: 10px;
  cursor: zoom-out;
}