/* --- 1. Globálne nastavenia a premenné --- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
  /* Farby - Základné */
  --white: #ffffff;
  --black: #000000;
  --text-primary: #322c23;
  --text-secondary: #858586;
  --text-nav: #004aad;
  --text-link: #0056b3;
  
  /* Pozadia */
  --bg-nav: #38b6ff;
  --bg-input: #f4f4f4;
  --bg-input-hover: #e8e8e8;
  
  /* Stavové farby (Tickety) */
  --status-new: #4c68df;
  --status-open: #fcbd27;
  --status-solved: #fa4b73;
  --status-text-green: #00bf63;
  --color-danger: #ff0000;

  /* Farby modulov */
  --module-calendar: #9fa0a2;
  --module-hwsw: #8c52ff;
  --module-hw: #e1a8f0;
  --module-sw: #bc3fde;
  --module-users: #00bf63;

  /* Tabuľky - konštanty */
  --table-row-light: rgba(0, 0, 0, 0.02);
  --table-row-dark: #e5edf1;
  --table-border: #ffffff;
  --column-border: #ffffff; 
}

/* Reset a základné nastavenia */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- 2. Utility a pomocné triedy --- */
.hidden { 
  display: none !important; 
}

.content-section {
  display: none;
}

.ml-auto {
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 0.5rem;
}

.text-muted {
  color: var(--text-secondary);
}

.italic {
  font-style: italic;
}

.text-green {
  color: var(--status-text-green);
  font-weight: bold;
}

.cursor-pointer {
  cursor: pointer;
}

.d-inline {
  display: inline;
}

.td-center {
  text-align: center;
}

.link-styled {
    color: var(--text-link);
    text-decoration: underline;
}

/* --- 3. Navigácia --- */
.navbar-container {
  background-color: var(--bg-nav);
  color: var(--text-nav);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin: 1rem;   
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.navbar-left .logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.navbar-left .logo-text {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-center {
  font-weight: 600;
  font-size: 1.75rem;
  text-align: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.navbar-right .user-role,
.navbar-right .user-name {
  font-weight: bold;
  font-size: 1.5rem;
}

/* Notifikácie */
.notification {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-icon {
  height: 36px;
  width: 36px;
  cursor: pointer;
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-danger);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: bold;
  border-radius: 9999px;
  padding: 0 4px;
}

/* Navigácia - Desktop */
@media (min-width: 768px) {
  .navbar-container {
    flex-direction: row;        
    align-items: center;    
    justify-content: space-between; 
    position: relative;
  }

  .navbar-left,
  .navbar-right { flex: 1; }
  .navbar-left { justify-content: flex-start; }
  .navbar-right { justify-content: flex-end; }

  .navbar-center {
    flex-grow: 0;
    width: auto;
    white-space: nowrap;
    margin: 0 1rem;
  }
}

@media (min-width: 1200px) {
  .navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}

@media (max-width: 1200px) {
  .user-role { display: none; }
}

/* --- 4. Dashboard (Dlaždice) --- */
.tiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem;
  justify-content: flex-start;
}

.tile-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
  min-height: 160px;
  width: 100%;
  min-width: 250px;
  padding: 1.5rem;
  border-radius: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile-container:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tile-content-text {
  flex-grow: 1;
  line-height: 1.2;
  padding-right: 0.25rem;
}

.tile-icon-img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  display: block;
}

.tile-circle {
  background-color: rgba(255, 255, 255, 0.25);
  height: 4.5rem; 
  width: 4.5rem; 
  border-radius: 50%; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0;
}

.tile-circle-content {
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;  
  padding-right: 9px;
  padding-bottom: 2px;
}

/* Varianty dlaždíc */
.tile-container.ticket-new { background-color: var(--status-new); }
.tile-container.ticket-open { background-color: var(--status-open); }
.tile-container.ticket-solved { background-color: var(--status-solved); }
.tile-container.module-calendar { background-color: var(--module-calendar); }
.tile-container.module-users { background-color: var(--module-users); }
.tile-container.module-hwsw { background-color: var(--module-hwsw); }
.tile-container.module-hw { background-color: var(--module-hw); }
.tile-container.module-sw { background-color: var(--module-sw); }

/* Grid responsivita */
@media (min-width: 640px) {
  .tile-container { width: calc(50% - 0.5rem); }
}

@media (min-width: 1024px) {
  .tile-container {
    width: calc(20% - 0.8rem);
    font-size: 1.55rem; 
  }
}

/* --- 5. Formuláre a Karty (Detail Ticketu) --- */
.page-centered-section {
  margin: 1rem;
}

.ticket-card {
  background: var(--status-new); /* Default */
  border-radius: 20px;
  color: var(--white);
  padding: 1rem 1.5rem;
  width: 100%;
  max-width: 33rem;
  margin: 0 auto;
}

.ticket-card.wide {
  max-width: 68rem;
}

/* Varianty kariet podľa sekcie */
.ticket-card.mode-open { background-color: var(--status-open); color: var(--white); }
.ticket-card.mode-solved { background-color: var(--status-solved); border-left: 5px solid var(--status-solved); }
.ticket-card.mode-add-user { background-color: var(--status-text-green); }
.ticket-card.mode-sw-equipment { background-color: var(--module-sw); }
.ticket-card.mode-hw-equipment { background-color: var(--module-hw); }

.ticket-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem; 
}

.field-group {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 1.05rem; 
  font-weight: 700;
  margin-bottom: 4px;
}

/* Inputy a ovládacie prvky */
.input-basic, 
.input-select, 
.input-textarea,
.input-file,
.static-box {
  width: 100%;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 8px 12px;
}

/* Špecifiká pre "open" mód (žltý podklad vyžaduje biele inputy) */
.ticket-card.mode-open .input-basic,
.ticket-card.mode-open .input-textarea,
.ticket-card.mode-open .input-file,
.ticket-card.mode-open .static-box {
  background-color: var(--white);
  color: var(--text-primary);
}

.static-box {
  display: flex;
  align-items: center;
  min-height: 40px;
  font-weight: 700;
  font-size: 1.1rem;
}

.input-select {
  appearance: none;
  background-image: url('images/arrow.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.input-textarea {
  height: 60px;
  resize: vertical;
}

/* Radio buttony */
.radio-group-row {
  display: flex;
  gap: 1.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--white);
  font-weight: 600;
}

/* Tlačidlá */
.submit-btn {
  display: block;
  width: fit-content;
  min-width: 150px;
  margin: 20px auto 10px;  
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 10px 32px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background: var(--bg-input-hover);
}

.btn-terminate {
  margin-top: 2rem;
  background-color: var(--white);
  color: var(--status-solved);
}

.btn-terminate:hover {
  background-color: #f0f0f0;
}

/* Layout detailu ticketu */
.ticket-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row-split {
  display: flex;
  gap: 1rem;
}

.split-half {
  flex: 1;
  min-width: 0;
}

/* Obrázok náhľad */
.image-frame {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsivita detailu */
@media (min-width: 768px) {
  .ticket-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 1rem;
    align-items: start;
    grid-auto-flow: dense;
  }

  .item-left { grid-column: 1; }
  .item-right { grid-column: 2; }

  .image-area {
    grid-column: 2;
    grid-row: 1 / span 4;
    height: 100%;
  }

  .image-frame { height: 100%; }
  .image-img { position: absolute; inset: 0; }

  .image-area + .item-right {
    grid-row: 5;
  }
}

@media (max-width: 480px) {
  .form-row-split { flex-direction: column; }
}

/* --- 6. Tabuľky (Zjednotená logika) --- */

/* Wrapper */
.table-wrapper {
  margin: 1.5rem 0;
  padding: 0 1rem;
  border-radius: 12px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 100%;
  font-size: 0.95rem;
  /* Defaultná téma tabuľky, ak nie je prepísaná triedou */
  --table-theme: var(--bg-nav);
  --mobile-bg: var(--white);
  --mobile-text: var(--text-primary);
}

/* Definície tém pre konkrétne tabuľky */
.table-tickets        { --table-theme: var(--bg-nav); }
.table-open-tickets   { --table-theme: var(--status-open);   --mobile-bg: var(--status-open);   --mobile-text: var(--white); }
.table-new-tickets    { --table-theme: var(--status-new);    --mobile-bg: var(--status-new);    --mobile-text: var(--white); }
.table-solved-tickets { --table-theme: var(--status-solved); --mobile-bg: var(--status-solved); --mobile-text: var(--white); }
.table-users          { --table-theme: var(--module-users);  --mobile-bg: var(--module-users);  --mobile-text: var(--white); }
.table-hwsw-records   { --table-theme: var(--module-hwsw);   --mobile-bg: var(--module-hwsw);   --mobile-text: var(--white); }
.table-sw-management  { --table-theme: var(--module-sw);     --mobile-bg: var(--module-sw);     --mobile-text: var(--white); }
.table-hw-management  { --table-theme: var(--module-hw);     --mobile-bg: var(--module-hw);     --mobile-text: var(--white); }
.table-records        { --table-theme: var(--bg-nav);        --mobile-bg: var(--bg-nav);        --mobile-text: var(--white); }

/* Hlavička - Desktop */
.custom-table thead th {
  background-color: var(--table-theme);
  color: var(--white);
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: left;
  border-right: 2px solid var(--column-border);
  white-space: nowrap;
  vertical-align: bottom;
}

.custom-table thead th:last-child {
  border-right: none;
}

/* Riadky a bunky - Desktop */
.custom-table tbody tr {
  transition: background-color 0.2s ease-in-out;
}

.custom-table tbody tr:nth-child(even) { background-color: var(--table-row-dark); }
.custom-table tbody tr:nth-child(odd) { background-color: var(--table-row-light); }

.custom-table tbody tr:hover {
  background-color: lightgray;
}

.custom-table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: top;
  border-right: 2px solid var(--column-border);
  color: var(--text-primary);
}

.custom-table tbody td:last-child {
  border-right: none;
}

/* Špecifiká obsahu buniek */
/* Prvý stĺpec tučný */
.custom-table tbody td:nth-child(1) {
  font-weight: 600;
  white-space: nowrap;
}

/* Text-muted pre vedľajšie stĺpce v ticket tabuľkách */
.table-tickets tbody td:nth-child(n+2):nth-child(-n+4),
.table-open-tickets tbody td:nth-child(n+2):nth-child(-n+5),
.table-new-tickets tbody td:nth-child(n+2):nth-child(-n+5),
.table-solved-tickets tbody td:nth-child(n+2):nth-child(-n+5) {
    color: var(--text-secondary);
}

/* Ikony akcií */
.action-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
  vertical-align: middle;
  display: inline-block;
}

.action-icon:hover {
  transform: scale(1.2);
}

/* Stavy (Status Labels) */
.status-new { color: var(--status-new); font-weight: 600; }
.status-open { color: var(--status-open); font-weight: 600; }
.status-solved { color: var(--status-solved); font-weight: 600; }

/* Zaoblenie rohov tabuľky */
.custom-table thead tr:first-child th:first-child { border-top-left-radius: 12px; }
.custom-table thead tr:first-child th:last-child { border-top-right-radius: 12px; }
.custom-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.custom-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }


/* --- Mobilné zobrazenie tabuliek (Karty) --- */
@media (max-width: 768px) {
  
  .custom-table thead { display: none; }

  .custom-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Aplikácia mobilnej témy (biela alebo farebná) */
    background-color: var(--mobile-bg) !important;
    color: var(--mobile-text) !important;
    
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .custom-table tbody tr:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .custom-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    white-space: normal;
    text-align: right;
    color: inherit; /* Preberá farbu z riadku */
  }

  /* Ak je pozadie farebné, border a texty musia byť svetlé */
  .table-open-tickets tbody td,
  .table-new-tickets tbody td,
  .table-solved-tickets tbody td,
  .table-users tbody td,
  .table-hwsw-records tbody td,
  .table-sw-management tbody td,
  .table-hw-management tbody td,
  .table-records tbody td {
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* Data-label atribúty */
  .custom-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 1rem;
    text-align: left;
    opacity: 0.9;
  }
  
  .custom-table tbody td:last-child {
    border-bottom: none;
    font-weight: 900;
    font-size: 1.1rem;
  }

  /* Úprava farieb stavov na farebnom pozadí */
  .table-open-tickets .status-open,
  .table-new-tickets .status-new,
  .table-solved-tickets .status-solved {
      color: var(--white) !important;
  }

  /* Inverzia ikon na tmavom/farebnom pozadí */
  .table-users .action-icon,
  .table-sw-management .action-icon,
  .table-hw-management .action-icon {
      filter: brightness(0) invert(1);
  }

  /* Zarovnanie vpravo pre mobil */
  .td-center {
      text-align: right; 
  }

  /* --- Dynamické farby riadkov podľa stavu (pre zmiešané tabuľky) --- */
  
  .custom-table tbody tr:has(.status-new) {
    background-color: var(--status-new) !important;
    color: var(--white) !important;
  }

  .custom-table tbody tr:has(.status-open) {
    background-color: var(--status-open) !important;
    color: var(--white) !important;
  }

  .custom-table tbody tr:has(.status-solved) {
    background-color: var(--status-solved) !important;
    color: var(--white) !important;
  }

  /* Reset farieb pre texty vo vnútri */
  .custom-table tbody tr:has(.status-new) td,
  .custom-table tbody tr:has(.status-open) td,
  .custom-table tbody tr:has(.status-solved) td {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    color: var(--white) !important;
  }

  .custom-table tbody tr:has(.status-new) .status-new,
  .custom-table tbody tr:has(.status-open) .status-open,
  .custom-table tbody tr:has(.status-solved) .status-solved {
    color: var(--white) !important;
  }
}

/* --- 7. Login obrazovka --- */
.login-container {
  width: 100%;
  max-width: 25rem; 
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.login-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-nav);
}

.login-input {
  width: 100%;
  padding: 0.75rem; 
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background-color: var(--white);
  color: var(--text-primary);
}

.login-input:focus {
  outline: none;
  border-color: var(--status-new);
  box-shadow: 0 0 0 3px rgba(76,104,223,0.2); 
}

.login-button {
  width: 100%; 
  background-color: var(--status-new);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none; 
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.login-button:hover {
  background-color: #3b58c2; 
  color: var(--white);
}

.login-button:active {
  transform: scale(0.98);
}

/* --- 8. Pracovný Kalendár (Timeline) --- */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-date-select {
  background-color: var(--bg-input);
  padding: 8px 30px 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 220px;
  cursor: pointer;
}

.calendar-action-btn {
  margin: 0 !important;
  background-color: var(--module-calendar);
  color: var(--white);
  font-size: 0.9rem;
  padding: 8px 16px;
}

.calendar-action-btn:hover {
  background-color: var(--text-secondary);
}

/* Wrapper */
.calendar-wrapper {
  width: 100%;
  overflow-x: auto;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Hlavička */
.calendar-header {
  display: flex;
  background-color: var(--module-calendar);
  color: var(--white);
  font-weight: 600;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.header-cell {
  padding: 12px 5px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.3);
  font-size: 0.95rem;
}

.header-cell:last-child {
  border-right: none;
}

.day-col {
  width: 120px;
  flex-shrink: 0;
  background-color: #8c8d8f;
}

.time-col {
  flex-grow: 1;
  width: 10%; /* 1 hodina = 10% */
}

.calendar-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px;
}

.calendar-row:last-child {
  border-bottom: none;
}

.day-label {
  width: 120px;
  flex-shrink: 0;
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-right: 1px solid #d1d1d1;
  color: var(--text-primary);
}

/* Časová os */
.timeline-track {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 0;
  background-image: repeating-linear-gradient(
      to right,
      transparent,
      transparent calc(10% - 1px),
      #e0e0e0 calc(10% - 1px),
      #e0e0e0 10%
  );
}

/* Tickety - Základ */
.ticket-bar {
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: transform 0.2s, filter 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
  margin-right: 1px;
}

.ticket-bar:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
  z-index: 10;
}

/* Špeciálna trieda pre malé tickety (napr. 30 minút) */
.ticket-compact {
  padding: 0 2px;
  font-size: 0.7rem;
}

.ticket-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Farby */
.ticket-bar.status-new { background-color: var(--status-new); }
.ticket-bar.status-open { background-color: var(--status-open); }
.ticket-bar.status-solved { background-color: var(--status-solved); }

.ticket-time-mobile {
  display: none;
}

/* --- Pomocné triedy pre Grid ---*/
/* Šírky (1h = 10%) */
.grid-w-05 { width: 5%; }
.grid-w-10 { width: 10%; }
.grid-w-15 { width: 15%; }
.grid-w-20 { width: 20%; }

/* Marginy (Odsadenie) */
.grid-ml-10 { margin-left: 10%; }
.grid-ml-35 { margin-left: 35%; }


/* --- Responsivita Kalendára (Mobil) --- */
@media (max-width: 992px) {
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .calendar-date-select {
    width: 100%;
  }
  
  .calendar-header {
    display: none;
  }

  .calendar-wrapper {
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .calendar-row {
    flex-direction: column;
    background-color: transparent;
    margin-bottom: 2rem;
    border: none;
    box-shadow: none;
    min-height: auto;
  }

  .day-label {
    width: 100%;
    background-color: var(--module-calendar);
    color: var(--white);
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 0.5rem;
    border-right: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .timeline-track {
    flex-direction: column;
    background-image: none;
    padding: 0;
    gap: 0.5rem;
    align-items: stretch;
  }

  .ticket-bar {
    /* Reset grid hodnôt */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    height: auto;
    
    /* Reset pre .ticket-compact*/
    padding: 12px 15px !important;
    font-size: 0.9rem !important;
    
    justify-content: space-between;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .ticket-time-mobile {
    display: inline-block;
    font-weight: 500;
    opacity: 0.9;
    font-size: 0.85rem;
    text-align: right;
  }
}

/* --- 9. Pagination (Stránkovanie) --- */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background-color: var(--white);
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd; /* Generická šedá */
  border-radius: 6px;
  background-color: var(--white);
  color: var(--text-primary);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
}

.pagination-btn:hover {
  background-color: var(--bg-input-hover);
  border-color: #ccc;
}

.pagination-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pagination-input {
  width: 40px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-weight: 600;
}

/* Úprava pre mobil */
@media (max-width: 600px) {
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- 10. Pätička --- */
footer {
  height: 20px;
}