/* UTB Pokrok – Frontend styles */

.pokrok-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
}

/* ---- Volba role ---- */

.pokrok-section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.pokrok-role-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.pokrok-role-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-size: 1rem;
}

.pokrok-role-card:hover,
.pokrok-role-card:focus {
    border-color: #0073aa;
    box-shadow: 0 4px 14px rgba(0,115,170,.15);
    outline: none;
}

.pokrok-role-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.pokrok-role-card strong {
    display: block;
    font-size: 1.05rem;
}

.pokrok-role-card span {
    font-size: .88rem;
    color: #666;
}

/* ---- Formulářové řádky ---- */

.pokrok-form-row {
    margin-bottom: 18px;
}

.pokrok-form-row > label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.pokrok-req { color: #c00; }

.pokrok-form-row input[type="text"],
.pokrok-form-row input[type="email"],
.pokrok-form-row input[type="password"],
.pokrok-form-row textarea,
.pokrok-form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color .15s;
}

.pokrok-form-row textarea { font-family: inherit; resize: vertical; }

.pokrok-form-row input[type="text"]:focus,
.pokrok-form-row input[type="email"]:focus,
.pokrok-form-row input[type="password"]:focus,
.pokrok-form-row textarea:focus,
.pokrok-form-row select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,.2);
}

/* ---- Dvojitý řádek formuláře (tituly + jméno/příjmení) ---- */

.pokrok-form-row--inline {
    display: flex;
    gap: 16px;
}

.pokrok-form-row--inline > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pokrok-form-row--inline > div > label {
    font-weight: 600;
    margin-bottom: 5px;
}

.pokrok-form-row--inline input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* ---- Vyhledávání předmětů (subject search widget) ---- */

.pokrok-subject-wrap {
    position: relative;
}

.pokrok-subject-search {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color .15s;
}

.pokrok-subject-search:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,.2);
}

.pokrok-subject-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #bbb;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.pokrok-subject-item {
    padding: 9px 14px;
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    border-bottom: 1px solid #f2f2f2;
    transition: background .1s;
}

.pokrok-subject-item:hover,
.pokrok-subject-item.highlighted {
    background: #e8f0fb;
}

.pokrok-subject-item--disabled {
    opacity: .45;
    cursor: default;
    background: #fafafa;
}

.pokrok-subject-item-name  { flex: 1; }
.pokrok-subject-item-meta  { font-size: .78rem; color: #888; white-space: nowrap; }

.pokrok-subject-empty {
    padding: 10px 14px;
    color: #999;
    font-size: .9rem;
    font-style: italic;
}

/* ---- Tagy vybraných předmětů ---- */

.pokrok-subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    min-height: 4px;
}

.pokrok-subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #c0d4fa;
    border-radius: 20px;
    padding: 4px 10px 4px 12px;
    font-size: .88rem;
    font-weight: 500;
}

.pokrok-subject-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a56db;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
    opacity: .7;
    transition: opacity .15s;
}

.pokrok-subject-tag-remove:hover { opacity: 1; }


/* ---- Záložková navigace ---- */

.pokrok-nav {
    display: flex;
    border-bottom: 2px solid #d0d0d0;
    margin-bottom: 24px;
    gap: 0;
}

.pokrok-tab {
    flex: 1;
    padding: 12px 18px;
    background: #f5f5f5;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: .97rem;
    font-weight: 600;
    color: #555;
    transition: background .15s, color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.pokrok-tab:first-child { border-radius: 6px 0 0 0; }
.pokrok-tab:last-child  { border-radius: 0 6px 0 0; }

.pokrok-tab:hover {
    background: #e8f0f7;
    color: #0073aa;
}

.pokrok-tab--active {
    background: #fff;
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* ---- Day picker ---- */

.pokrok-day-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pokrok-day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
    padding: 10px 6px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    font-size: .78rem;
    color: #444;
    line-height: 1.2;
}

.pokrok-day-btn:hover {
    border-color: #0073aa;
    background: #f0f7fb;
    color: #0073aa;
}

.pokrok-day-btn--active {
    border-color: #0073aa;
    background: #0073aa;
    color: #fff;
}

.pokrok-day-short {
    font-size: 1rem;
    font-weight: 700;
    display: block;
}

.pokrok-day-full {
    font-size: .68rem;
    display: block;
    opacity: .8;
}

.pokrok-day-btn--active .pokrok-day-full { opacity: .9; }

.pokrok-day-times {
    margin-top: 4px;
}

.pokrok-day-times-hint {
    font-size: .85rem;
    color: #999;
    font-style: italic;
}

.pokrok-day-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f5f9fc;
    border: 1px solid #d4e6f1;
    border-radius: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pokrok-day-time-label {
    font-weight: 700;
    min-width: 74px;
    color: #0073aa;
    font-size: .92rem;
}

.pokrok-day-time-inputs {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pokrok-day-time-row input[type="time"] {
    padding: 6px 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: .92rem;
    width: 116px;
}

.pokrok-time-lbl {
    font-size: .8rem;
    color: #888;
    font-weight: normal;
}

.pokrok-slot-sep { color: #888; font-weight: bold; }

/* ---- Tlačítka ---- */

.pokrok-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}

.pokrok-btn-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 11px 26px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}

.pokrok-btn-submit:hover  { background: #005a87; }
.pokrok-btn-submit:disabled { background: #9ab8cb; cursor: not-allowed; }

.pokrok-btn-next {
    background: #0073aa;
    color: #fff;
    border: 1px solid #0073aa;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}

.pokrok-btn-next:hover    { background: #005a87; }
.pokrok-btn-next:disabled { background: #aaa; border-color: #aaa; cursor: not-allowed; }

.pokrok-btn-back {
    background: none;
    border: 1px solid #bbb;
    padding: 10px 18px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    color: #333;
    transition: background .15s;
}

.pokrok-btn-back:hover { background: #f2f2f2; }

.pokrok-btn-secondary {
    background: #f5f5f5;
    border: 1px solid #bbb;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: .9rem;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s;
}

.pokrok-btn-secondary:hover { background: #e5e5e5; }

/* ---- Zprávy ---- */

.pokrok-msg {
    margin-top: 14px;
    padding: 11px 15px;
    border-radius: 5px;
    font-size: .95rem;
}

.pokrok-msg-error   { background: #fde8e8; color: #a50000; border: 1px solid #f5c0c0; }
.pokrok-msg-success { background: #e6f4ea; color: #1a5e2e; border: 1px solid #b7dfbf; }

/* ---- Karty doučovatelů ---- */

.pokrok-tutor-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
}

.pokrok-tutor-name  { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.pokrok-tutor-meta  { font-size: .88rem; color: #666; margin-bottom: 6px; }
.pokrok-tutor-rating { margin-bottom: 10px; }

.pokrok-star        { color: #ccc; font-size: 1.1rem; }
.pokrok-star.filled { color: #f0a500; }
.pokrok-rating-none { color: #999; font-style: italic; }

/* ---- Výběr termínu ---- */

.pokrok-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pokrok-slot-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
    min-width: 130px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
    font-size: .95rem;
}

.pokrok-slot-option:hover    { border-color: #0073aa; }
.pokrok-slot-option.selected { border-color: #0073aa; background: #e8f4fa; font-weight: 600; }
.pokrok-slot-option strong   { display: block; }
.pokrok-slot-option span     { font-size: .82rem; color: #555; }

.pokrok-slot-personal {
    border-style: dashed;
    border-color: #aaa;
    color: #555;
    min-width: 160px;
}
.pokrok-slot-personal:hover   { border-color: #0073aa; color: #0073aa; }
.pokrok-slot-personal.selected { border-color: #0073aa; background: #e8f4fa; color: #005a87; }

/* ---- Shrnutí potvrzení ---- */

.pokrok-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: .97rem;
}

.pokrok-confirm-table th,
.pokrok-confirm-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pokrok-confirm-table th {
    font-weight: 700;
    width: 140px;
    color: #444;
}

/* ---- Úspěch ---- */

.pokrok-success-box {
    text-align: center;
    padding: 36px 24px;
    background: #e8f5e9;
    border: 1px solid #b7dfbf;
    border-radius: 10px;
}

.pokrok-success-icon {
    width: 56px;
    height: 56px;
    background: #34a853;
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 56px;
    margin: 0 auto 14px;
}

.pokrok-empty {
    color: #888;
    font-style: italic;
}

.pokrok-slot-hint {
    margin: 0 0 10px;
    color: #666;
    font-size: 13px;
}
.pokrok-slot-hint-note { color: #8a8f96; font-size: 12px; }

/* ---- Výběr konkrétních hodin (student volí termín) ---- */
.pokrok-hours { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.pokrok-hours-day {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 10px; background: #f7f9fc; border: 1px solid #e2e6ec; border-radius: 10px;
}
.pokrok-hours-dayname {
    flex: 0 0 84px; font-weight: 700; color: #003c71; font-size: 14px; padding-top: 6px;
}
.pokrok-hours-cells { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.pokrok-hour {
    min-width: 58px; min-height: 42px; padding: 6px 10px;
    border: 2px solid #cfd6df; border-radius: 8px; background: #fff;
    font-size: 14px; font-weight: 600; color: #3a4756; cursor: pointer;
    transition: transform .08s, background .1s, border-color .1s;
    -webkit-tap-highlight-color: transparent;
}
.pokrok-hour:hover { border-color: #0073aa; }
.pokrok-hour:active { transform: scale(.96); }
.pokrok-hour.selected {
    background: #1e7e42; border-color: #1e7e42; color: #fff;
    box-shadow: 0 1px 3px rgba(30,126,66,.35);
}
.pokrok-slot-personal2 {
    display: block; width: 100%; margin-top: 4px; padding: 11px 14px;
    border: 2px dashed #cfd6df; border-radius: 10px; background: #fff;
    font-size: 14px; font-weight: 600; color: #5b6672; cursor: pointer;
    transition: border-color .1s, background .1s;
}
.pokrok-slot-personal2:hover { border-color: #0073aa; color: #003c71; }
.pokrok-slot-personal2.selected { border-style: solid; border-color: #0073aa; background: #e8f4fa; color: #005a87; }

@media (max-width: 560px) {
    .pokrok-hours-day { flex-direction: column; gap: 6px; }
    .pokrok-hours-dayname { flex: none; padding-top: 0; }
    .pokrok-hour { min-width: 56px; flex: 1 1 auto; }
}

/* ---- Dostupnostní grid (doučovatel – frontend) ---- */

.pokrok-avail-wrap {
    overflow-x: auto;
    margin-top: 6px;
}

.pokrok-avail-table {
    border-collapse: collapse;
    font-size: .82rem;
    white-space: nowrap;
}

.pokrok-avail-table thead th {
    background: #f0f0f1;
    text-align: center;
    padding: 4px 3px;
    font-weight: 700;
    border: 1px solid #ddd;
    min-width: 30px;
    font-size: .78rem;
}

.pokrok-avail-table thead th:first-child { min-width: 24px; }

.pokrok-avail-table tbody th {
    background: #f6f7f7;
    padding: 5px 7px;
    font-weight: 700;
    border: 1px solid #ddd;
    text-align: center;
    color: #333;
    font-size: .78rem;
}

.pokrok-avail-table td {
    text-align: center;
    padding: 3px 2px;
    border: 1px solid #eee;
}

.pokrok-avail-table td:hover { background: #f0f7fb; }
.pokrok-avail-table tr:hover td { background: #f5fafd; }

.pokrok-avail-table input[type="checkbox"] {
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: #0073aa;
}

.pokrok-form-hint {
    font-size: .78rem;
    color: #999;
    margin: 4px 0 0;
    font-style: italic;
}

/* ---- Progressive panels (doučovaný flow) ---- */

.pokrok-panel {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    /* overflow: hidden záměrně vynecháno – ořezávalo by dropdown vyhledávání předmětů */
}

.pokrok-panel--active {
    border-color: #0073aa;
    box-shadow: 0 2px 10px rgba(0,115,170,.12);
}

.pokrok-panel--done {
    border-color: #b7dfbf;
}

.pokrok-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #f6f7f7;
    border-bottom: 1px solid #eee;
    border-radius: 7px 7px 0 0;
}

.pokrok-panel--active .pokrok-panel-head {
    background: #e8f4fa;
    border-bottom-color: #c0dff2;
}

.pokrok-panel--done .pokrok-panel-head {
    background: #edfaf0;
    border-bottom-color: #c2e8cb;
    border-bottom: none;
}

.pokrok-panel-num {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c4c4c4;
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.pokrok-panel--active .pokrok-panel-num { background: #0073aa; }

.pokrok-panel--done .pokrok-panel-num {
    background: #34a853;
    font-size: 0;
}

.pokrok-panel--done .pokrok-panel-num::before {
    content: '✓';
    font-size: .85rem;
}

.pokrok-panel-label {
    font-weight: 600;
    font-size: .92rem;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    white-space: nowrap;
}

.pokrok-panel-sel {
    flex: 1;
    font-size: .85rem;
    color: #444;
    padding: 0 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pokrok-panel-change {
    background: none;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: .78rem;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
    transition: background .1s, border-color .1s;
}

.pokrok-panel-change:hover {
    background: #f0f0f0;
    border-color: #888;
    color: #333;
}

.pokrok-panel-body { padding: 18px; }

/* ---- Oranžová varianta panelů (registrace doučovatele) ----
   Barvy převzaté z oficiálního tématu utb-ft:
   --utbft-oranzova: #E87722, --utbft-oranzova-tmava: #C45D11
   Panely tu nejsou průvodce jako u doučovaného, proto mají stav napevno. */

.pokrok-panel--dt {
    border-color: #e87722;
    box-shadow: 0 2px 10px rgba(232,119,34,.12);
}

.pokrok-panel--dt .pokrok-panel-head {
    background: #fdf3ea;
    border-bottom-color: #f5d9bd;
}

/* Tmavší odstín, aby bílé číslo v kolečku mělo dostatečný kontrast */
.pokrok-panel--dt .pokrok-panel-num {
    background: #c45d11;
}

#pokrok-form-doucovatel .pokrok-btn-submit {
    background: #e87722;
}

#pokrok-form-doucovatel .pokrok-btn-submit:hover {
    background: #c45d11;
}

#pokrok-form-doucovatel .pokrok-btn-submit:disabled {
    background: #efc39b;
}

#pokrok-step-doucovatel .pokrok-section-title {
    border-bottom-color: #e87722;
}

/* ---- Zelená varianta panelů (záznam o doučování) ---- */

.pokrok-panel--zaznam {
    border-color: #2e9e56;
    box-shadow: 0 2px 10px rgba(46,158,86,.12);
}

.pokrok-panel--zaznam .pokrok-panel-head {
    background: #ecf6ef;
    border-bottom-color: #c6e5d1;
}

.pokrok-panel--zaznam .pokrok-panel-num {
    background: #1a6b34;
}

#pokrok-form-zaznam .pokrok-btn-submit          { background: #2e9e56; }
#pokrok-form-zaznam .pokrok-btn-submit:hover    { background: #1a6b34; }
#pokrok-form-zaznam .pokrok-btn-submit:disabled { background: #a8d4b9; }

#pokrok-step-zaznam .pokrok-section-title { border-bottom-color: #2e9e56; }

.pokrok-zaznam-intro { margin: -8px 0 18px; }

/* ---- Barva aktivní záložky podle role ---- */

.pokrok-tab[data-role="doucovatel"]:hover              { background: #fdf3ea; color: #c45d11; }
.pokrok-tab[data-role="doucovatel"].pokrok-tab--active { color: #c45d11; border-bottom-color: #e87722; }
.pokrok-tab[data-role="zaznam"]:hover                  { background: #ecf6ef; color: #1a6b34; }
.pokrok-tab[data-role="zaznam"].pokrok-tab--active     { color: #1a6b34; border-bottom-color: #2e9e56; }

/* ---- Rozpis doučování (opakovatelné řádky) ---- */

.pokrok-rozpis-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pokrok-rozpis-datum { flex: 0 0 180px; }
.pokrok-rozpis-hod   { flex: 0 0 90px; text-align: right; }

.pokrok-rozpis-unit {
    color: #666;
    font-size: .9rem;
    flex: 0 0 auto;
}

.pokrok-rozpis-remove {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    line-height: 1;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .1s, border-color .1s, color .1s;
}

.pokrok-rozpis-remove:hover {
    background: #fdecea;
    border-color: #e0b4b0;
    color: #b3261e;
}

.pokrok-btn-add-row { margin-top: 4px; }

.pokrok-rozpis-total {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #cfe3d7;
    font-size: 1.02rem;
}

.pokrok-rozpis-total strong {
    font-size: 1.15rem;
    color: #1a6b34;
}

.pokrok-input-month { max-width: 220px; }

/* ---- Přihlašovací obrazovka ---- */

.pokrok-wrap--login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
}

.pokrok-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 28px rgba(0,60,113,.10);
    padding: 32px 28px;
    box-sizing: border-box;
}

.pokrok-login-head { text-align: center; margin-bottom: 24px; }
.pokrok-login-logo { font-size: 2.4rem; display: block; line-height: 1; }
.pokrok-login-head h2 {
    margin: 8px 0 2px;
    font-size: 1.6rem;
    letter-spacing: .06em;
    color: #003c71;
}
.pokrok-login-head p { margin: 0; color: #6a7178; font-size: .9rem; }

.pokrok-login-stage label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .92rem;
}
.pokrok-login-stage input[type="email"],
.pokrok-login-stage input[type="password"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #c3c9cf;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.pokrok-login-stage input:focus {
    border-color: #003c71;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,60,113,.15);
}

.pokrok-login-btn { width: 100%; padding: 12px; font-size: 1.02rem; }

.pokrok-login-who {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f2f5f8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: .9rem;
    color: #33404d;
    word-break: break-all;
}

.pokrok-login-forgot { display: block; margin: 12px auto 0; }
.pokrok-login-newinfo { color: #55606b; font-size: .92rem; margin: 0 0 14px; }

.pokrok-reg-roles { display: flex; gap: 12px; margin-bottom: 16px; }
.pokrok-reg-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: #fff;
    border: 2px solid #dfe4e9;
    border-radius: 10px;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .12s, background .12s, transform .08s;
}
.pokrok-reg-card span { font-size: 1.6rem; line-height: 1; }
.pokrok-reg-card:hover { border-color: #003c71; background: #f5f8fb; }
.pokrok-reg-card.is-active { border-color: #003c71; background: #eaf0f6; }

@media (max-width: 480px) {
    .pokrok-login-card { padding: 24px 18px; border-radius: 12px; }
    .pokrok-reg-roles  { flex-direction: column; }
}

/* ---- Přihlašovací lišta ---- */

.pokrok-authbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f5f7f9;
    border: 1px solid #e3e7eb;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .92rem;
}

.pokrok-authbar-user { color: #333; }
.pokrok-authbar-user small { color: #888; }

.pokrok-authbar-link {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: .9rem;
    text-decoration: underline;
    padding: 0;
}
.pokrok-authbar-link:hover { color: #005a87; }

.pokrok-login-box {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #e3e7eb;
}

.pokrok-login-box input[type="email"],
.pokrok-login-box input[type="password"] {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: .9rem;
    min-width: 180px;
}

.pokrok-login-reset {
    flex-basis: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.pokrok-account-field small { color: #888; font-weight: normal; }

/* ---- Modrá varianta panelů (potvrzení doučování) ----
   Tmavě modrá UTB z tématu utb-ft: --utbft-modra #003C71 */

.pokrok-panel--potvrzeni {
    border-color: #003c71;
    box-shadow: 0 2px 10px rgba(0,60,113,.12);
}

.pokrok-panel--potvrzeni .pokrok-panel-head {
    background: #eaf0f6;
    border-bottom-color: #c2d3e5;
}

.pokrok-panel--potvrzeni .pokrok-panel-num { background: #003c71; }

#pokrok-form-potvrzeni .pokrok-btn-submit          { background: #003c71; }
#pokrok-form-potvrzeni .pokrok-btn-submit:hover    { background: #002a52; }
#pokrok-form-potvrzeni .pokrok-btn-submit:disabled { background: #9fb3c9; }

#pokrok-step-potvrzeni .pokrok-section-title { border-bottom-color: #003c71; }

.pokrok-tab[data-role="potvrzeni"]:hover              { background: #eaf0f6; color: #003c71; }
.pokrok-tab[data-role="potvrzeni"].pokrok-tab--active { color: #003c71; border-bottom-color: #003c71; }

.pokrok-input-code { max-width: 220px; text-transform: uppercase; letter-spacing: .06em; }

.pokrok-hint-ok   { color: #1a6b34; font-weight: 600; }
.pokrok-hint-warn { color: #b07000; }

/* ---- Radio řádek (Ano/Ne) ---- */

.pokrok-radio-row { display: flex; gap: 20px; }

.pokrok-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* ---- Hvězdičkový vstup ---- */

.pokrok-star-input {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.9rem;
    line-height: 1;
}

.pokrok-star-btn {
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    color: #d0d0d0;
    transition: color .1s, transform .1s;
    line-height: 1;
}

.pokrok-star-btn:hover  { transform: scale(1.15); }
.pokrok-star-btn.is-on  { color: #f4b400; }

.pokrok-star-label {
    margin-left: 12px;
    font-size: .95rem;
    color: #555;
    min-width: 110px;
}

/* ---- Ukazatel průběhu v hlavičce panelu (2 ze 3 předmětů) ---- */

.pokrok-progress-badge {
    flex-shrink: 0;
    font-size: .76rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff3d6;
    color: #8a5a00;
    border: 1px solid #f0d9a0;
    white-space: nowrap;
}

.pokrok-progress-badge--done {
    background: #e6f4ea;
    color: #1a5e2e;
    border-color: #b7dfbf;
}

/* ---- Sekce jednoho předmětu (výběr doučovatele) ---- */

.pokrok-subj-group {
    border: 1px solid #e2e2e2;
    border-left: 4px solid #d8d8d8;
    border-radius: 8px;
    padding: 14px 16px 4px;
    margin-bottom: 16px;
    background: #fcfcfc;
    transition: border-color .15s, background .15s;
}

.pokrok-subj-group--todo { border-left-color: #f0a500; background: #fffdf7; }
.pokrok-subj-group--done { border-left-color: #34a853; background: #fbfefc; }

.pokrok-subj-head {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pokrok-subj-marker {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    flex-shrink: 0;
    background: #ddd;
    position: relative;
}

.pokrok-subj-group--todo .pokrok-subj-marker { background: #f0a500; }

.pokrok-subj-group--done .pokrok-subj-marker { background: #34a853; }
.pokrok-subj-group--done .pokrok-subj-marker::after {
    content: '✓';
    position: absolute;
    inset: 0;
    color: #fff;
    font-size: .72rem;
    line-height: 15px;
    text-align: center;
    font-weight: 700;
}

.pokrok-subj-title {
    font-weight: 700;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
}

.pokrok-subj-code {
    font-size: .78rem;
    background: #eef1f3;
    color: #445;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.pokrok-subj-state {
    font-size: .82rem;
    color: #666;
    flex-shrink: 0;
}

.pokrok-subj-group--done .pokrok-subj-state { color: #1a5e2e; font-weight: 600; }
.pokrok-subj-group--todo .pokrok-subj-state { color: #8a5a00; font-weight: 600; }

/* ---- Mřížka karet doučovatelů uvnitř sekce ---- */

.pokrok-tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.pokrok-tutor-grid .pokrok-tutor-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    background: #fff;
    padding: 12px 13px;
}

.pokrok-tutor-grid .pokrok-tutor-name   { font-size: .98rem; margin-bottom: 2px; }
.pokrok-tutor-grid .pokrok-tutor-meta   { font-size: .78rem; margin-bottom: 3px; }
.pokrok-tutor-grid .pokrok-tutor-rating { margin-bottom: 7px; }
.pokrok-tutor-grid .pokrok-star         { font-size: .95rem; }

.pokrok-tutor-card--selected {
    border-color: #34a853;
    background: #f2fbf5;
    box-shadow: 0 1px 6px rgba(52,168,83,.18);
}

.pokrok-tutor-bio {
    font-size: .85rem;
    color: #555;
    margin: 3px 0 7px;
    /* Delší medailonek kartu nenatahuje – zbytek je v title atributu */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pokrok-tutor-note {
    font-size: .78rem;
    color: #1a5e2e;
    background: #e6f4ea;
    border-radius: 4px;
    padding: 3px 7px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.pokrok-tutor-grid .pokrok-tutor-card > button { margin-top: auto; }

/* ---- Štítky předmětů u doučovatele ---- */

.pokrok-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pokrok-chip-label { font-size: .76rem; color: #777; margin-right: 2px; }

.pokrok-chip {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef1f3;
    color: #667;
    border: 1px solid transparent;
    cursor: default;
    white-space: nowrap;
}

/* Zkratky nad limit se ukážou až po kliknutí na „+N dalších“ */
.pokrok-chip--hidden { display: none; }
.pokrok-chip-row--open .pokrok-chip--hidden { display: inline-block; }

.pokrok-chip-more {
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: none;
    border: 1px dashed #b9c2c8;
    color: #0073aa;
    cursor: pointer;
    white-space: nowrap;
}

.pokrok-chip-more:hover { background: #eef6fb; border-color: #0073aa; }

/* Předmět, o který v této sekci jde */
.pokrok-chip--current { background: #e8f4fa; color: #005a87; border-color: #b6dcef; }

/* Předmět, pro který je tento doučovatel zvolen jinde */
.pokrok-chip--alsochosen { background: #e6f4ea; color: #1a5e2e; border-color: #b7dfbf; }

/* ---- Dostupnost doučovatele (rozklikávací) ---- */

.pokrok-avail-box {
    font-size: .8rem;
    margin-bottom: 9px;
    border: 1px solid #e5e8ea;
    border-radius: 5px;
    background: #fafbfb;
}

.pokrok-avail-box > summary {
    cursor: pointer;
    padding: 5px 9px;
    color: #005a87;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.pokrok-avail-box > summary::-webkit-details-marker { display: none; }
.pokrok-avail-box > summary::after { content: ' ▾'; color: #888; }
.pokrok-avail-box[open] > summary::after { content: ' ▴'; }
.pokrok-avail-box > summary:hover { background: #eef6fb; border-radius: 4px; }

.pokrok-avail-count { font-weight: 400; color: #777; }

.pokrok-avail-list {
    list-style: none;
    margin: 0;
    padding: 2px 9px 8px;
}

.pokrok-avail-list li {
    padding: 2px 0;
    color: #444;
    border-bottom: 1px solid #f0f2f3;
}

.pokrok-avail-list li:last-child { border-bottom: none; }

.pokrok-avail-day {
    display: inline-block;
    min-width: 26px;
    font-weight: 700;
    color: #005a87;
}

.pokrok-avail-none {
    font-size: .78rem;
    color: #888;
    margin-bottom: 9px;
    font-style: italic;
}

/* ---- Tlačítko „již vybráno“ ---- */

.pokrok-btn-chosen {
    background: #34a853;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 16px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.pokrok-btn-chosen:hover { background: #2c8c45; }

/* ---- Sekce termínu jednoho doučovatele ---- */

.pokrok-slot-group {
    border: 1px solid #e2e2e2;
    border-left: 4px solid #0073aa;
    border-radius: 8px;
    padding: 14px 16px 4px;
    margin-bottom: 16px;
    background: #fcfcfc;
}

.pokrok-slot-group .pokrok-subj-marker { background: #0073aa; }

/* ---- Shrnutí výběru v hlavičce panelu ---- */

.pokrok-pair {
    display: inline-block;
    background: #edfaf0;
    border: 1px solid #c2e8cb;
    border-radius: 4px;
    padding: 1px 7px;
    margin-right: 5px;
    font-size: .8rem;
    white-space: nowrap;
}

/* ---- Rekapitulační tabulka předmět × doučovatel × termín ---- */

.pokrok-confirm-student { margin: 0 0 10px; font-size: 1rem; }

.pokrok-confirm-table--matrix thead th {
    background: #f6f7f7;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.pokrok-confirm-table--matrix td {
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.pokrok-confirm-table--matrix code {
    font-size: .76rem;
    background: #eef1f3;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ---- Seznam v potvrzovací hlášce ---- */

.pokrok-success-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    text-align: left;
    display: inline-block;
}

.pokrok-success-list li {
    padding: 7px 12px;
    margin-bottom: 6px;
    background: #f6f7f7;
    border-left: 3px solid #34a853;
    border-radius: 4px;
    font-size: .93rem;
}

/* ---- Responzivita ---- */

@media (max-width: 560px) {
    .pokrok-role-cards       { flex-direction: column; }
    .pokrok-slot-grid        { flex-direction: column; }
    .pokrok-tutor-grid       { grid-template-columns: 1fr; }
    .pokrok-subj-head        { align-items: flex-start; }
    .pokrok-subj-state       { flex-basis: 100%; }
    .pokrok-panel-head       { flex-wrap: wrap; }
    .pokrok-rozpis-datum     { flex: 1 1 auto; }
    .pokrok-rozpis-hod       { flex: 0 0 70px; }
    .pokrok-confirm-table--matrix,
    .pokrok-confirm-table--matrix tbody,
    .pokrok-confirm-table--matrix tr,
    .pokrok-confirm-table--matrix td { display: block; width: 100%; }
    .pokrok-confirm-table--matrix thead { display: none; }
    .pokrok-confirm-table--matrix tr {
        border: 1px solid #eee;
        border-radius: 6px;
        margin-bottom: 8px;
        padding: 4px 0;
    }
    .pokrok-confirm-table--matrix td { border-bottom: none; padding: 4px 12px; }
    .pokrok-form-actions     { flex-wrap: wrap; }
    .pokrok-day-btn          { width: 46px; padding: 8px 4px; }
    .pokrok-day-time-row     { flex-direction: column; align-items: flex-start; }
    .pokrok-day-time-inputs  { flex-wrap: wrap; }
    .pokrok-nav              { flex-wrap: wrap; }
    .pokrok-tab              { font-size: .85rem; padding: 10px 10px; flex: 1 1 45%; }
    .pokrok-star-input       { font-size: 1.7rem; }
    .pokrok-form-row--inline { flex-direction: column; gap: 0; }
}

/* ---- Kurzy k odsouhlasení (doučovatel) ---- */
.pokrok-ods-empty {
    background: #f6f7f9; border: 1px solid #e2e6ec; border-radius: 10px;
    padding: 26px; text-align: center; color: #5b6672;
}
.pokrok-ods-card {
    background: #fff; border: 1px solid #e2e6ec; border-left: 4px solid #003c71;
    border-radius: 10px; padding: 16px 18px; margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.pokrok-ods-card.is-done { border-left-color: #1e7e42; background: #f7fcf9; }
.pokrok-ods-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pokrok-ods-head strong { font-size: 1.05rem; color: #003c71; }
.pokrok-ods-badge { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.pokrok-ods-badge.is-ok    { background: #d1e7dd; color: #0f5132; }
.pokrok-ods-badge.is-ready { background: #d4edda; color: #155724; }
.pokrok-ods-badge.is-wait  { background: #fff3cd; color: #856404; }
.pokrok-ods-preds { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pokrok-ods-chip {
    background: #f4f7fb; border: 1px solid #e2e6ec; border-radius: 6px;
    padding: 4px 10px; font-size: .82rem; color: #3a4756;
}
.pokrok-ods-chip strong { color: #003c71; }
.pokrok-ods-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f5; }
.pokrok-ods-form > label { display: block; font-weight: 600; margin-bottom: 4px; color: #3a4756; }
.pokrok-ods-note {
    width: 100%; margin: 8px 0; border: 1px solid #cfd6df; border-radius: 6px;
    padding: 7px 10px; font-size: .9rem; resize: vertical;
}
.pokrok-ods-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pokrok-ods-msg { font-size: .85rem; color: #5b6672; }
.pokrok-ods-msg.is-err { color: #d93025; }
.pokrok-ods-ok { color: #1e7e42; font-weight: 600; padding: 4px 0; }
