/* ===== Základní nastavení ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: #232323;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Kontejner stránky ===== */
.container {
    max-width: 66vw;
    width: 100%;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px #0001;
    padding: 10px 30px 10px 30px;
    display: flex;
    flex-direction: column;
    
}
.container-login {
    max-width: 40vw;
    width: 100%;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px #0001;
    padding: 10px 30px 10px 30px;
    display: flex;
    flex-direction: column;
    
}
.container-admin {
    max-width: 90vw;
    width: 100%;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px #0001;
    padding: 10px 30px 10px 30px;
    display: flex;
    flex-direction: column;
    
}
.container-admin-per {
    max-width: 90vw;
    width: 100%;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px #0001;
    padding: 10px 30px 10px 30px;
    display: flex;
    flex-direction: column;
}
.container-admin-last {
    max-width: 90vw;
    width: 100%;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px #0001;
    padding: 10px 30px 10px 30px;
    display: flex;
    flex-direction: column;

margin-bottom: 100px;
}
/* ===== Obsah v indexu ===== */
.index-content {
    width: 100%;
    max-width: 70vw;
    margin: 0 auto;
}

/* ===== Hlavička ===== */


.header-container {
  display: flex;
  align-items: stretch; /* zajistí stejnou výšku obou částí */
  gap: 20px;
}

.header-left {
  flex: 0 0 80px; /* pevná šířka pro logo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo {
  max-height: 100%; /* vyplní výšku levé buňky */
  width: auto;
  display: block;
}

.header-right {
  flex: 1;
  flex-direction: column;
  justify-content: space-between; /* rozdělí prostor na dvě části */
  padding-top: 40px; /* jemné posunutí nadpisu */
}

.header-title {
  font-size: 3.5em;
  font-weight: 800;
  color: #1860c2;
  line-height: 1.1;
  margin: 0;
}

.header-subtitle {
  font-size: 1.18em;
  color: #31384b;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.logout-wrapper {
  position: fixed;
  top: 10px;    /* vzdálenost od horního okraje */
  right: 20px;  /* vzdálenost od pravého okraje */
  z-index: 1000;
}

.logout-link {
  color: #1860c2;
  font-weight: 600;
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
  white-space: nowrap;
  background: #f0f6ff;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.25);
}

.logout-link:hover {
  color: #134382;
  background: #dbe8ff;
}

.btn-reset {
	    width: 85px;
background-color: #f0f6ff;
    color: #1967cc;
    box-shadow: 0 2px 8px #a9c4ff7a;
	    padding: 12px 0;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    border: none;
}

.btn-reset:hover {
  background-color: #dbe8ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}


#resultsTable th:nth-child(1),
#resultsTable td:nth-child(1) {
  max-width: 100px;
  width: 100px;      /* pevná šířka */
  white-space: nowrap;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
#resultsTable th:nth-child(2),
#resultsTable td:nth-child(2) {
  max-width: 100px;
  width: 100px;      /* pevná šířka */
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
      display: none;
}
#resultsTable th:nth-child(5),
#resultsTable td:nth-child(5) {
  max-width: 100px;
  width: 100px;      /* pevná šířka */
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

#resultsTable th:nth-child(4) {
  min-width: 260px; /* nebo jiná hodnota podle potřeby */
  white-space: nowrap;
  text-align: left;
}

.period-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

/* Základní styl tlačítek */
.period-bar button {
  width: 170px;
  padding: 20px 0;
  font-size: 1.1em;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
  border: none;
  color: white;
}

/* Primární tlačítko (Dnes) */
.period-bar button.btn-primary {
  background-color: #1967cc;
}

.period-bar button.btn-primary:hover {
  background-color: #1653a5;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* Tlačítka se světlým stylem (Jindy, Reset) */
.period-bar button.btn-light {
  background-color: #f0f6ff;
  color: #1967cc;
  box-shadow: 0 2px 8px #a9c4ff7a;
border: 2px solid #aec6e7;
}

.period-bar button.btn-light:hover {
  background-color: #dbe8ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

/* Tlačítko Jen závady (speciální, červené) */
.period-bar button.btn-faults {
  background-color: #f44336;
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.6);
}

.period-bar button.btn-faults:hover {
  background-color: #d32f2f;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.8);
}
.period-bar button.btn-faults {
  background-color: #f0f6ff;    /* stejná jako btn-light */
  color: #1967cc;
  box-shadow: 0 2px 8px #a9c4ff7a;
  border: 2px solid #aec6e7;    /* případně přidej okraj, aby bylo konzistentní */
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.period-bar button.btn-faults:hover,
.period-bar button.btn-faults:focus {
  background-color: #dbe8ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
  color: #1653a5;
}

/* Aktivní stav */
.period-bar button.btn-faults.active {
  background-color: #b71c1c;
  box-shadow: 0 6px 24px rgba(183, 28, 28, 0.9);
  color: #fff;
  border: none;
  cursor: default;
}

.period-bar button.btn-faults.active:hover,
.period-bar button.btn-faults.active:focus {
  background-color: #b71c1c;
  box-shadow: 0 6px 24px rgba(183, 28, 28, 0.9);
}

input[type="date"] {
  width: 100%;
  max-width: 220px;         /* vhodná šířka pro datum */
  padding: 20px 14px;
  font-size: 1.1em;
  font-weight: 600;
  border: 2px solid #1860c2;
  border-radius: 12px;
  background: #fafbfc;
  color: #252525;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
	    background-color: #f0f6ff;
    color: #1967cc;
    box-shadow: 0 2px 8px #a9c4ff7a;
    border: 2px solid #aec6e7;
}

input[type="date"]:focus {
  border-color: #134382;
  box-shadow: 0 0 6px 2px rgba(25, 97, 187, 0.5);
}


/* ===== Výběrové pole (index) ===== */
.rect-select.admin-filter.admin-room {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
padding: 10px 0 18px 0;    margin-bottom: 10px;

}

.rect-select.admin-filter.tridy,
.rect-select.admin-filter.pocitace {
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
	padding: 10px 0 18px 0;
	    margin-bottom: 10px;

}

.rect-select.admin-filter.tridy .rect,
.rect-select.admin-filter.pocitace .rect {
  display: flex;
  align-items: center;   /* vertikální centrování */
  justify-content: center; /* horizontální centrování */
  text-align: center;    /* jistota pro případ zalomení textu */
}

/* Základní styl tlačítek (např. pro učebny) */
.rect-select.admin-filter.admin-room .rect {
  border-radius: 999px; /* "pill" tvar */
  background: #f7f8fa;
  border: 2px solid #e0e0e0;
  padding: 8px 8px;
  max-width: 140px;
  font-size: 1em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rect-select.admin-filter.admin-room .rect.selected,
.rect-select.admin-filter.admin-room .rect:hover {
  background: #e3f0ff;
  border-color: #1860c2;
  color: #1860c2;
  box-shadow: 0 6px 18px #1860c20c;
  transform: scale(1.05);
}

/* Odlišný styl pro tlačítka tříd a počítačů */
.rect-select.admin-filter.tridy .rect,
.rect-select.admin-filter.pocitace .rect {
  border-radius: 12px; /* kulatější rohy, ale ne "pill" */
  background: #f0f4fb;
  border: 2px solid #aec6e7;
  padding: 8px 25px;
  max-width: 150px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rect-select.admin-filter.tridy .rect.selected,
.rect-select.admin-filter.pocitace .rect.selected,
.rect-select.admin-filter.tridy .rect:hover,
.rect-select.admin-filter.pocitace .rect:hover {
  background: #bdd7f7;
  border-color: #4a90e2;
  color: #2a5db0;
  box-shadow: 0 6px 20px #4a90e240;
  transform: scale(1.07);
}


.rect-select {
    background: #f5faff;
    border-radius: 0 0 16px 16px;
    padding: 30px 0 18px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px;
    justify-items: center;
    align-items: center;
    margin-bottom: 32px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

.rect {
    width: 100%;
    min-width: 0;
    padding: 16px 0;
    border-radius: 999px;
    border: 2px solid #e0e0e0;
    background: #f7f8fa;
    color: #252525;
    font-size: 1.13em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 2px 8px #0001;
    cursor: pointer;
    outline: none;
    user-select: none;
    margin-bottom: 0;
    box-sizing: border-box;
    transition: background .16s, color .15s, border-color .15s, box-shadow .14s, transform .08s;
}
.rect.selected,
.rect:focus,
.rect:hover {
    border-color: #1860c2;
    color: #1860c2;
    background: #e3f0ff;
    box-shadow: 0 6px 18px #1860c20c;
    transform: scale(1.05);
}
.rect:active {
    background: #d2e7ff;
    color: #1451a3;
}

/* ===== ANO/NE (index) ===== */
.state-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
}
.state-btns button,
.state-btns .rect {
    min-width: 110px;
    padding: 16px 32px;
    border-radius: 999px;
    border: 2px solid #e0e0e0;
    background: #f7f8fa;
    color: #252525;
    font-size: 1.13em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    box-shadow: 0 2px 8px #0001;
    cursor: pointer;
    outline: none;
    user-select: none;
    margin-bottom: 0;
    box-sizing: border-box;
    display: inline-block;
    transition: background .16s, color .15s, border-color .15s, box-shadow .14s, transform .08s;
}
.state-btns .state-ok {
    background: #e8fbe8;
    color: #179c36;
    border-color: #b8eac2;
}
.state-btns .state-ok:hover,
.state-btns .state-ok:focus {
    background: #b8eac2;
    color: #148129;
    border-color: #179c36;
    box-shadow: 0 3px 18px #b8eac28a;
    transform: scale(1.06);
}
.state-btns .state-bad {
    background: #ffeaea;
    color: #d23b37;
    border-color: #ffd0d0;
}
.state-btns .state-bad:hover,
.state-btns .state-bad:focus {
    background: #ffd0d0;
    color: #a62b2b;
    border-color: #d23b37;
    box-shadow: 0 3px 18px #ffd0d088;
    transform: scale(1.06);
}


.fa-circle-exclamation {
  color: #d32f2f;            /* tmavě červená pro chybu */
  font-size: 1.3em;          /* větší ikona */
  cursor: pointer;           /* kurzor ruky při najetí */
  transition: color 0.2s ease, transform 0.15s ease;
}

.fa-circle-exclamation:hover,
.fa-circle-exclamation:focus {
  color: #b71c1c;            /* tmavší červená na hover */
  transform: scale(1.15);    /* lehké zvětšení */
  outline: none;
}

/* Styl jen pro admin.php – předpokládáme, že těmto elementům na admin.php odpovídá .admin-sidebar nebo .container */

.admin-sidebar #nameInput,
.admin-sidebar #date {
  width: 100%;
  min-width: 100%;
  padding: 10px 14px;
  font-size: 1.1em;
  font-weight: 600;
  border: 2px solid #1860c2;
  border-radius: 12px;
  background: #fafbfc;
  color: #252525;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: text;
    margin: 10px auto 10px auto;
}

.admin-sidebar #nameInput::placeholder {
  color: #8c8c8c;
  font-weight: 400;
}

.admin-sidebar #nameInput:focus,
.admin-sidebar #date:focus {
  border-color: #134382;
  box-shadow: 0 0 6px 2px rgba(25, 97, 187, 0.5);
}

/* ===== Inputy ===== */
input[type="text"], input[type="password"], input[type="email"] {
    width: 62%;
    min-width: 240px;
    max-width: 420px;
    font-size: 1.12em;
    border: 2px solid #1860c2;
    border-radius: 13px;
    padding: 14px 20px;
    margin: 26px auto 26px auto;
    display: block;
    background: #fafbfc;
    box-sizing: border-box;
    text-align: center;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.17s;
    box-shadow: 0 1px 6px #1860c210;
}
input[type="text"]:focus {
    border-color: #1860c2;
    box-shadow: 0 0 0 2px #1860c222;
}

/* ===== Fault box ===== */
.fault-box {
    margin: 24px 0 8px 0;
    background: #f5faff;
    border-radius: 18px;
    padding: 28px 22px 22px 22px;
    border: 3px solid #b6d9fa;
    box-shadow:
        0 4px 24px #1860c225,
        0 0 0 0 #b6d9fa,
        inset 0 1.5px 10px #b6d9fa33;
    text-align: center;
    transition:
        border-color 0.24s cubic-bezier(.42,0,.58,1.0),
        box-shadow 0.24s cubic-bezier(.42,0,.58,1.0),
        background 0.22s;
}
.fault-box:focus-within {
    border-color: #1860c2;
    background: #e9f3fe;
    box-shadow:
        0 8px 32px #1860c23d,
        0 0 0 4px #b6d9fa77,
        inset 0 2px 14px #b6d9fa66;
}
.fault-label {
    display: block;
    color: #1860c2;
    font-size: 1.19em;
    font-weight: 700;
    padding: 12px 0 14px 0;
    letter-spacing: 0.02em;
}
.fault-box input[type="text"] {
    margin: 0 auto 14px auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 11px;
    border: 2px solid #1860c2;
    padding: 15px 18px;
    background: #fff;
    font-size: 1.13em;
    box-shadow: 0 1px 4px #1860c210;
    transition: border .17s, box-shadow .17s;
    text-align: center;
}
.fault-box input[type="text"]:focus {
    border-color: #1250a7;
    box-shadow: 0 0 0 2px #1860c22d;
}
.fault-box .form-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
}
.success-message {
  display: block;
  background: linear-gradient(90deg, #eafeea 0%, #f7fdfb 100%);
  color: #179c36;
  border: 2.5px solid #b8eac2;
  border-radius: 17px;
  margin: 20px auto 30px auto;
  padding: 24px 28px;
  font-size: 1.27em;
  font-weight: 700;
  letter-spacing: 0.015em;
  max-width: 440px;
  box-shadow: 0 4px 28px #179c3631, 0 0 0 0 #b8eac2, inset 0 2px 14px #b8eac24d;
  text-align: center;
  transition:
      border-color 0.19s cubic-bezier(.42,0,.58,1.0),
      background 0.18s,
      color 0.16s,
      box-shadow 0.22s cubic-bezier(.42,0,.58,1.0);
  animation: success-pop 0.45s cubic-bezier(.32,1.3,.62,1) both;
  z-index: 10;
}

@keyframes success-pop {
  0%   { transform: scale(0.90); opacity: 0; }
  70%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1.00); }
}

/* Seznam položek */
.done-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.done-item {
  width: 100%;  /* šířka na 100% sloupce gridu */
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}

.done-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.2);
}

.done-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #eaeaea;
  flex-shrink: 0;
}

.done-item h3 {
  margin: 15px 10px 24px 10px;
  font-size: 1.25em;
  font-weight: 700;
  color: #1e293b;
}

/* ===== Tlačítka ===== */
.save-btn {
    font-size: 1.8em;
    padding: 22px 0;
    min-width: 220px;
    border-radius: 20px;
    box-shadow: 0 3px 20px #1967cc2c;
    letter-spacing: 0.05em;
}
.save-btn:hover {
    box-shadow: 0 6px 36px #1967cc37;
    background: #1653a5;
}
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}
button.btn-primary,
button[type="submit"] {
    min-width: 200px;
    width: auto;
    padding: 20px 0;
    background: #1967cc;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.23em;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px #1967cc19;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.09s;
    margin: 0;
    display: inline-block;
}
button.btn-primary:hover,
button[type="submit"]:hover {
    background: #1653a5;
    box-shadow: 0 4px 18px #1967cc35;
    transform: translateY(-2px) scale(1.01);
}
button.btn-primary:active,
button[type="submit"]:active {
    background: #134382;
    transform: scale(0.99);
}
.back-btn {
    background: #fff;
    color: #1967cc;
    border: 2px solid #1967cc;
    border-radius: 17px;
    font-weight: 700;
    padding: 16px 0;
    min-width: 130px;
    font-size: 1.16em;
    letter-spacing: 0.03em;
    transition: background .13s, color .13s, border .13s, box-shadow .12s;
    margin: 0;
}
.back-btn:hover {
    background: #f0f6ff;
    color: #1651a3;
    border-color: #1651a3;
    box-shadow: 0 4px 16px #1967cc11;
}

/* ===== Popisky ===== */
.volba-label {
    font-size: 1.16em;
    font-weight: 700;
    color: #1860c2;
    background: linear-gradient(90deg, #f5faff 0%, #eaf2fb 100%);
    padding: 10px 0 10px 0;
    border-radius: 14px 14px 0 0;
    margin-bottom: 0;
    margin-top: 12px;
    box-shadow: 0 2px 14px #1860c20b;
    text-align: center;
    border-bottom: 2px solid #179c36;
    letter-spacing: 0.03em;
}

/* ===== Zpráva úspěchu ===== */
@keyframes success-pop {
    0%   { transform: scale(0.90); opacity: 0; }
    70%  { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1.00); }
}

/* ===== Patička ===== */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -1px 20px #1860c219;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 18px 40px 13px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #818181;
    z-index: 50;
    box-sizing: border-box;
}
.footer-left {
    text-align: left;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.footer-right {
    text-align: right;
    flex: 0 0 auto;
}
.footer a {
    color: #1860c2;
    text-decoration: none;
    font-weight: 600;
    transition: color .14s;
    font-size: 1em;
}
.footer a:hover {
    color: #1451a3;
}
.material-symbols-outlined {
    font-size: 1.13em;
    margin-right: 6px;
    vertical-align: middle;
}

/* admin */

/* ===== Admin layout ===== */

.admin-flex {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  max-width: 100%;
}

.admin-sidebar {
  flex: 0 0 280px;
  background: #f5faff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 24px #1860c224;
  box-sizing: border-box;
  height: fit-content;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-label {
  font-weight: 700;
  color: #1860c2;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.07em;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.admin-content {
  flex: 1 1 auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 32px #1860c224;
  box-sizing: border-box;
  overflow-x: auto;
}

.stats {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1860c2;
  font-size: 1.08em;
  user-select: none;
	display: none;
}

/* ===== Tabulka ===== */

#resultsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 1em;
  user-select: none;
  table-layout: fixed;
}

#resultsTable thead tr {
  background: #e3f0ff;
  color: #1860c2;
  font-weight: 700;
  border-bottom: 3px solid #179c36;
}

#resultsTable thead th {
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

#resultsTable tbody tr:nth-child(even) {
  background: #f7faff;
}

#resultsTable tbody tr:hover {
  background: #d2e7ff;
  cursor: pointer;
}

#resultsTable tbody td {
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ikony v hlavičce */
#resultsTable thead th i {
  font-size: 1.15em;
}

/* ===== Paginace ===== */
.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  user-select: none;
}

.pagination a, .pagination strong, .pagination span {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #0d6efd;
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
  background: #fff;
  min-width: 38px;
  text-align: center;
  display: inline-block;
  transition: background 0.14s, color 0.14s;
}

.pagination strong {
  background-color: #0d6efd;
  color: white;
  cursor: default;
}

.pagination .pag-ellipsis {
  border: none;
  background: none;
  color: #ccc;
  cursor: default;
  padding: 7px 8px;
}

.pagination .pag-disabled {
  color: #ccc;
  background: #f4f6fa;
  border: 1.5px solid #eaeaea;
  cursor: not-allowed;
}

.pagination a:hover {
  background: #e3edfd;
  color: #0854c9;
}

/* ===== Popup dialog ===== */
.popup-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(13,110,253,0.07);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup {
  background: #fff;
  padding: 22px 24px 20px 24px;
  border-radius: 13px;
  box-shadow: 0 4px 32px #0d6efd44;
  min-width: 260px;
  max-width: 90vw;
  box-sizing: border-box;
}

.popup h4 {
  margin: 0 0 16px 0;
  font-size: 1.2em;
  color: #e43c2d;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup button {
  margin-top: 18px;
  padding: 10px 0;
  width: 100%;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #1967cc;
  color: white;
  transition: background 0.2s ease;
}

.popup button:hover {
  background: #1653a5;
}
.admin-page .popup {
  background: #fff;
  padding: 50px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(13, 110, 253, 0.27);
  min-width: 400px;
  max-width: 90vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
 box-shadow: 2px 2px 30px #a9c4ff;
}

.admin-page .popup label {
  font-weight: 600;
  color: #1860c2;
  font-size: 1.1em;
}

.admin-page .popup select {
  padding: 10px 12px;
  font-size: 1.1em;
  font-weight: 600;
  border: 2px solid #1860c2;
  border-radius: 12px;
  background: #fafbfc;
  color: #252525;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.admin-page .popup select:focus {
  border-color: #134382;
  box-shadow: 0 0 6px 2px rgba(25, 97, 187, 0.5);
}

.admin-page .popup button {
  padding: 14px 0;
  border-radius: 17px;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.admin-page .popup button.btn-primary {
  background-color: #1967cc;
  color: #fff;
  box-shadow: 0 2px 12px #1967cc66;
}

.admin-page .popup button.btn-primary:hover {
  background-color: #1653a5;
  box-shadow: 0 4px 18px #1653a5aa;
}

.admin-page .popup button.btn-light {
  background-color: #f0f6ff;
  color: #1967cc;
  box-shadow: 0 2px 8px #a9c4ff7a;
}

.admin-page .popup button.btn-light:hover {
  background-color: #dbe8ff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

/* login.css nebo přidej do style.css */
body

/* LOGIN PAGE */
body.login-page {
  font-family: 'Inter', Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 70px;
  flex-direction: column;
}
.login-center {
  font-family: 'Inter', Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 70px;
  flex-direction: column;
}

.login-logo {
  width: 120px;
  margin-bottom: 20px;
  display: block;
}

.login-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
  text-align: center;
}

.login-box {
  background: #fff;
  border-radius: 12px;
  padding: 36px 26px 28px 26px;
  box-shadow: 0 0 16px #0d6efd16;
  min-width: 0;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

.login-box label {
  color: #0d6efd;
  font-weight: 600;
}

.login-box input {
  width: 100%;
  padding: 11px;
  margin: 10px 0 22px 0;
  border: 1.5px solid #ced4da;
  border-radius: 7px;
  font-size: 1em;
}

.login-box button {
  width: 100%;
  padding: 13px 0;
  background-color: #0d6efd;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.16s;
}

.login-box button:hover {
  background: #0854c9;
}

.login-error, .error {
  background: #f8d7da;
  color: #842029;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.btn-back-to-admin {
  position: fixed;
  top: 20px;
  right: 20px;
  color: #1860c2;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(25, 103, 204, 0.6);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10000;
}

.btn-back-to-admin:hover,
.btn-back-to-admin:focus {
  background-color: #f0f6ff;
  box-shadow: 0 6px 20px rgba(22, 83, 165, 0.9);
  outline: none;
}

.btn-to-stats {
  
  width: 170px;
    padding: 20px 0;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    color: #1967cc;
    box-shadow: 0 2px 8px #a9c4ff7a;
    border: 2px solid #aec6e7;
	text-decoration: none;
      text-align: center;
}

.btn-to-stats:hover,
.btn-to-stats:focus {
      background-color: #f0f6ff;
    color: #1967cc;
    box-shadow: 0 2px 8px #a9c4ff7a;
    border: 2px solid #aec6e7;
}

.vwtag {
  width:100% !important;
}

/* Responsive */
@media (max-width: 430px) {
  body.login-page {
    padding-bottom: 40px;
  }
  .login-box {
    padding: 18px 8px 16px 8px;
    max-width: 98vw;
  }
  .login-logo {
    width: 80px;
  }
  .login-title {
    font-size: 1.8em;
  }
}



/* ===== Responsivita ===== */
@media (max-width: 1100px) {
  .admin-flex {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  .admin-content {
    width: 100%;
    overflow-x: auto;
  }
  .rect-select {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}



/* ===== Utility ===== */
.hidden { display: none !important; }
.center { text-align: center; }

/* ===== Responsivita ===== */
@media (max-width: 900px) {
    .container { max-width: 99vw; width: 99vw; padding: 6vw 2vw 6vw 2vw; }
    .index-content { max-width: 99vw; }
    .rect-select {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 14px;
        padding: 12px 0 10px 0;
    }
    .rect, .state-btns button, .state-btns .rect { font-size: 1em; padding: 9px 0; }
    input[type="text"], input[type="password"], input[type="email"], .fault-box input[type="text"] { width: 100%; min-width: 0; }
    button, .btn, .back-btn { min-width: 100px; padding: 11px 0; font-size: 1em; }
    .footer { padding: 14px 12px 10px 12px; }
    .form-buttons, .fault-box .form-buttons { gap: 10px; flex-direction: column; }
    .save-btn { font-size: 1.18em; padding: 13px 0; min-width: 120px; }
}
