/* Třídní schůzky. Vzhled převzatý z webu a administrace (barvy, písmo Lexend, zaoblení). */
@font-face{font-family:'Lexend';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/lexend-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lexend';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/lexend-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Lexend',system-ui,sans-serif;color:#14232E;background:linear-gradient(180deg,#E3F2FC 0%,#F4FAFE 45%,#FFF8EC 100%);background-attachment:fixed;min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:#1667C7;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:15px;color:inherit}
h1,h2,h3{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #3FA9E8;outline-offset:2px}

/* přihlášení – stejné jako administrace */
.login{min-height:100vh;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;padding:20px}
.login-card{width:100%;max-width:400px;background:#fff;border-radius:28px;padding:36px 32px;box-shadow:0 24px 60px -24px rgba(20,60,90,.45);display:flex;flex-direction:column;gap:14px;text-align:center}
.login-card img{height:80px;width:auto;max-width:100%;object-fit:contain;margin:0 auto}
.login-card h1{font-size:26px;font-weight:800}
.login-card p{margin:-8px 0 6px;color:#4A5D6B}
.login-card label{display:flex;flex-direction:column;gap:6px;text-align:left;font-size:14px;font-weight:600}
.login-card input{padding:13px 16px;border-radius:14px;border:1px solid #D5E2EC;background:#F7FBFE}
#code{text-transform:uppercase;letter-spacing:.12em;font-weight:700;text-align:center;font-size:18px}
#code::placeholder{text-transform:none;letter-spacing:0;font-weight:400;font-size:15px}
.roles{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.roles button{padding:14px 8px;align-items:center;border:0;border-radius:16px;background:#F1F6FA;color:#14232E;display:flex;flex-direction:column;gap:2px;font-size:14px;cursor:pointer;box-shadow:inset 0 0 0 1px #D5E2EC}
.roles button small{font-weight:400;color:#6B7D8A;font-size:12px}
.roles button.on{background:#14324A;color:#fff;box-shadow:none}
.roles button.on small{color:#B9CCDB}
.login-card button[type=submit]{margin-top:6px;padding:14px;border-radius:999px;border:0;background:#14324A;color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.login-card button[type=submit]:hover{background:#1F4766}
.login-card small{color:#7A8B97;font-size:12px;min-height:1em}
.login-card small.err{color:#C8203F;font-weight:600;font-size:13px}
@media (max-width:400px){.login-card{padding:28px 20px}}

/* horní lišta */
.stripe{height:6px;display:grid;grid-template-columns:repeat(5,1fr)}
.stripe span:nth-child(1){background:#3FA9E8}.stripe span:nth-child(2){background:#8CCB4E}.stripe span:nth-child(3){background:#FFC93C}.stripe span:nth-child(4){background:#F27A7A}.stripe span:nth-child(5){background:#B57BE6}
.bar{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);box-shadow:0 6px 24px -16px rgba(20,60,90,.45)}
.bar-in{max-width:1040px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand img{height:44px;width:auto}
.brand span{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.brand strong{font-size:20px;font-weight:800;letter-spacing:-.01em}
.brand small{font-size:13px;color:#4A5D6B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-user{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}
@media (max-width:600px){.who{display:none}.brand{gap:10px}.brand img{height:36px}.brand strong{font-size:17px;white-space:nowrap}.bar-in{padding:10px 14px}}

.view{max-width:1040px;margin:0 auto;padding:24px 20px 40px;display:flex;flex-direction:column;gap:18px}
.foot{text-align:center;font-size:12px;color:#7A8B97;padding:0 20px 24px}

/* obecné prvky */
.head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.head h1{font-size:28px;font-weight:800;letter-spacing:-.02em}
.head p{margin:4px 0 0;color:#4A5D6B}
.btns{display:flex;flex-wrap:wrap;gap:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:999px;border:0;background:#fff;color:#14232E;font-weight:600;cursor:pointer;box-shadow:inset 0 0 0 1px #D5E2EC;white-space:nowrap}
.btn:hover{background:#F4F9FD}
.btn.pri{background:#FFC93C;box-shadow:none;font-weight:700}
.btn.pri:hover{background:#FFB800}
.btn.dark{background:#14324A;color:#fff;box-shadow:none}
.btn.dark:hover{background:#1F4766}
.btn.danger{color:#C8203F}
.btn.sm{padding:7px 14px;font-size:13px}
.btn:disabled{opacity:.5;cursor:default}
.card{background:#fff;border-radius:20px;box-shadow:0 6px 20px -14px rgba(20,60,90,.35);padding:20px}
.card h2{font-size:18px;font-weight:700;margin-bottom:12px}
.muted{color:#6B7D8A}
.back{align-self:flex-start;border:0;background:none;padding:4px 0;font-weight:600;color:#1667C7;cursor:pointer}

/* info o termínu */
.event{display:flex;flex-wrap:wrap;gap:10px}
.event span{display:inline-flex;align-items:center;gap:8px;background:#fff;border-radius:999px;padding:9px 16px;font-size:14px;font-weight:600;box-shadow:0 4px 14px -10px rgba(20,60,90,.4)}
.event i{font-style:normal}

/* kroky */
.steps{display:flex;gap:6px;flex-wrap:wrap;font-size:13px;font-weight:600;color:#6B7D8A}
.steps span{display:flex;align-items:center;gap:6px;padding:6px 12px 6px 6px;border-radius:999px;background:rgba(255,255,255,.7)}
.steps em{font-style:normal}
.steps b{width:22px;height:22px;border-radius:50%;background:#DCE6EE;color:#4A5D6B;display:flex;align-items:center;justify-content:center;font-size:12px}
.steps .on{background:#fff;color:#14232E}
.steps .on b{background:#14324A;color:#fff}
.steps .done b{background:#8CCB4E;color:#fff}

/* seznam učitelů */
.search{padding:13px 18px;border-radius:999px;border:1px solid #D5E2EC;background:#fff;width:100%;max-width:380px}
.teachers{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
.t-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;border:0;background:#fff;text-align:left;cursor:pointer;box-shadow:0 6px 20px -14px rgba(20,60,90,.35);transition:transform .15s,box-shadow .15s;width:100%}
.t-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px -14px rgba(20,60,90,.45)}
.t-card.full{opacity:.65}
.av{width:52px;height:52px;border-radius:16px;background:var(--c,#3FA9E8);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;flex:none}
.t-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.t-name{font-weight:700;font-size:16px}
.t-sub{font-size:13px;color:#4A5D6B}
.meter{height:6px;border-radius:99px;background:#EEF3F7;overflow:hidden;margin-top:6px}
.meter i{display:block;height:100%;background:#8CCB4E;border-radius:99px}
.t-free{font-size:12px;font-weight:700;color:#3E8E1F}
.t-card.full .t-free{color:#C8203F}
.t-card .mine-tag{font-size:12px;font-weight:700;color:#C46A00}
.arrow{font-size:20px;color:#9AAAB6}

/* moje rezervace */
.mine{display:flex;flex-direction:column;gap:8px}
.mine-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#FFF8E6;box-shadow:inset 0 0 0 1px #FFE2A3}
.mine-row .time{font-weight:800;font-size:17px;min-width:56px}
.mine-row .txt{flex:1;min-width:0;font-size:14px}
.mine-row .txt b{display:block;font-size:15px}

/* okénka */
.t-head{display:flex;align-items:center;gap:14px}
.t-head .av{width:60px;height:60px;font-size:20px;border-radius:18px}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;color:#4A5D6B}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:14px;height:14px;border-radius:5px;display:block}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.slot{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px;border-radius:16px;border:0;text-align:left;font-weight:600;min-height:78px;cursor:pointer;transition:transform .12s,box-shadow .12s}
.slot .tm{font-size:18px;font-weight:800;letter-spacing:-.01em}
.slot .st{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.slot.free{background:#fff;box-shadow:inset 0 0 0 2px #B8E08C}
.slot.free .st{color:#3E8E1F}
.slot.free:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 2px #8CCB4E,0 10px 20px -12px rgba(62,142,31,.5)}
.slot.taken{background:#EEF3F7;color:#8A9AA6;cursor:not-allowed}
.slot.mine{background:#FFC93C;color:#14232E}
.slot.booked{background:#14324A;color:#fff}
.slot.booked .st{color:#B9CCDB}
.slot.booked:hover,.slot.mine:hover{transform:translateY(-2px)}
.slot.empty{background:#fff;box-shadow:inset 0 0 0 1px #D5E2EC;cursor:default;color:#6B7D8A}
.lg-free{background:#fff;box-shadow:inset 0 0 0 2px #B8E08C}.lg-taken{background:#DCE6EE}.lg-mine{background:#FFC93C}.lg-booked{background:#14324A}

/* učitel – statistiky */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.stat{background:#fff;border-radius:18px;padding:16px 18px;box-shadow:0 6px 20px -14px rgba(20,60,90,.35)}
.stat b{display:block;font-size:28px;font-weight:800}
.stat span{font-size:13px;color:#4A5D6B}

/* tabulky (správa) */
.tabs{display:flex;gap:6px;flex-wrap:wrap;background:#fff;border-radius:999px;padding:6px;align-self:flex-start;box-shadow:0 6px 20px -14px rgba(20,60,90,.35)}
.tabs button{border:0;background:none;padding:9px 18px;border-radius:999px;font-weight:600;cursor:pointer;color:#4A5D6B}
.tabs button.on{background:#14324A;color:#fff}
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;font-size:15px}
.table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6B7D8A;font-weight:600;padding:10px 12px;border-bottom:1px solid #E3EAF0;white-space:nowrap}
.table td{padding:12px;border-bottom:1px solid #EEF3F7;vertical-align:middle}
.table tr:hover td{background:#F9FBFD}
.table .acts{display:flex;gap:6px;justify-content:flex-end}
.t-cell{display:flex;align-items:center;gap:12px}
.t-cell .av{width:38px;height:38px;font-size:14px;border-radius:12px}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#EEF3F7;color:#4A5D6B;white-space:nowrap}
.pill.ok{background:#DFF5E7;color:#16884A}.pill.full{background:#FDE6EA;color:#C8203F}
code{background:#F1F6FA;border-radius:6px;padding:2px 6px;font-size:13px}
.icon-btn{width:34px;height:34px;border-radius:10px;border:0;background:#F1F6FA;cursor:pointer;font-size:15px;display:inline-flex;align-items:center;justify-content:center}
.icon-btn:hover{background:#E3EEF6}
.icon-btn.del:hover{background:#FDE6EA;color:#C8203F}
.empty-note{padding:30px;text-align:center;color:#6B7D8A}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}

/* formuláře a okna */
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.field input,.field select,.field textarea{padding:12px 14px;border-radius:12px;border:1px solid #D5E2EC;background:#F7FBFE;font-weight:400;font-size:16px}
.field small{font-weight:400;color:#6B7D8A;font-size:12px}
.field.bad input,.field.bad select{border-color:#C8203F;background:#FFF5F7}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal-bg{position:fixed;inset:0;background:rgba(10,25,38,.55);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.modal{background:#fff;border-radius:22px;padding:24px;max-width:460px;width:100%;display:flex;flex-direction:column;gap:14px;margin:auto}
.modal h3{font-size:21px}
.modal p{margin:0;color:#4A5D6B}
.modal .sum{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#F1F6FA}
.modal .sum .av{width:44px;height:44px;font-size:16px;border-radius:14px}
.modal .sum b{display:block}
.modal .sum small{color:#4A5D6B}
.modal .big-time{margin-left:auto;font-size:20px;font-weight:800;white-space:nowrap}
.err-box{background:#FDE6EA;color:#A3132F;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600}
.ok-box{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.ok-box .tick{width:64px;height:64px;border-radius:50%;background:#8CCB4E;color:#fff;font-size:32px;display:flex;align-items:center;justify-content:center}
.detail{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:15px}
.detail dt{color:#6B7D8A}
.detail dd{margin:0;font-weight:600}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);background:#14324A;color:#fff;padding:13px 20px;border-radius:14px;font-weight:600;font-size:14px;opacity:0;pointer-events:none;transition:all .25s;z-index:100;box-shadow:0 14px 34px -12px rgba(0,0,0,.4);max-width:calc(100% - 32px)}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:600px){
  .view{padding:18px 14px 32px}
  .head h1{font-size:23px}
  .slots{grid-template-columns:repeat(2,1fr)}
  .table .hide-m{display:none}
  .row2{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* tisk přehledu pro učitele */
.print-only{display:none}
@media print{
  body{background:#fff}
  .bar,.stripe,.foot,.btns,.back,.legend,.slots,.stats,.tabs,.no-print,.head p{display:none!important}
  .print-only{display:block}
  .view{padding:0}
  .card{box-shadow:none;padding:0}
}

/* pauzy, termíny */
.slot.empty{cursor:pointer}
.slot.empty:hover{box-shadow:inset 0 0 0 2px #9AAAB6}
.slot.pause{background:repeating-linear-gradient(135deg,#FFF1D1 0 10px,#FFE8B0 10px 20px);color:#8A5A00}
.lg-pause{background:#FFE2A3}
.tabs small{font-weight:400;opacity:.75;font-size:12px}
.search.sel{max-width:260px;padding:10px 16px;width:auto}
.table tr.past td{color:#8A9AA6}
.mine-row .time small{display:block;font-size:11px;font-weight:600;color:#8A6A2A}
.mail-note{background:#E1F0FB;border-radius:14px;padding:10px 14px;font-size:14px;color:#14232E!important}
.term-row{display:grid;grid-template-columns:110px 1fr 1fr;gap:8px;align-items:center;font-weight:400}
.term-row select{padding:9px 10px;border-radius:12px;border:1px solid #D5E2EC;background:#F7FBFE;font-size:15px}
.term-row select:disabled{opacity:.45}
.chk{display:flex;align-items:center;gap:8px;font-weight:600}
.chk input{width:18px;height:18px}
.row2>*,.field input{min-width:0}

/* načítání, správa rezervace z e-mailu, drobnosti */
.loader{display:flex;gap:8px}
.loader span{width:14px;height:14px;border-radius:50%;animation:bounce 1s infinite ease-in-out}
.loader span:nth-child(1){background:#3FA9E8}.loader span:nth-child(2){background:#8CCB4E;animation-delay:.1s}.loader span:nth-child(3){background:#FFC93C;animation-delay:.2s}.loader span:nth-child(4){background:#F27A7A;animation-delay:.3s}.loader span:nth-child(5){background:#B57BE6;animation-delay:.4s}
@keyframes bounce{0%,80%,100%{transform:translateY(0);opacity:.6}40%{transform:translateY(-12px);opacity:1}}
.roles .ri{font-size:24px;line-height:1;margin-bottom:4px}
.login-back{font-size:13px;color:#6B7D8A}
.login-card small a{color:#1667C7;font-weight:700}
.login-card .btn{margin:0}
.brand{color:inherit}
.btns.end{justify-content:flex-end}.btns.center{justify-content:center}.btns.between{justify-content:space-between}
.btn.wide{width:100%}
.btn.danger.wide{background:#FDE6EA;box-shadow:none;padding:14px}
.btn.danger.wide:hover{background:#FBD3DB}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite;display:inline-block}
@keyframes spin{to{transform:rotate(360deg)}}
.gdpr{font-size:12px!important;color:#6B7D8A!important;line-height:1.5}
.mail-note.warn{background:#FFF1D1;color:#6B5310!important}
.empty-note .big-ico{font-size:40px;margin-bottom:8px}
.empty-note p{margin:6px 0 0}
.mine-card{background:linear-gradient(135deg,#FFFBF0,#fff)}
.manage{text-align:left;gap:16px}
.manage h1,.manage img{text-align:center}
.ticket{border-radius:20px;padding:18px 20px;background:linear-gradient(135deg,#14324A,#1F5A86);color:#fff;display:flex;flex-direction:column;gap:2px;box-shadow:0 14px 30px -18px rgba(20,50,74,.8)}
.ticket small{color:#B9D6EC!important;font-size:13px!important;text-transform:capitalize}
.ticket b{font-size:34px;font-weight:800;letter-spacing:-.02em}
.ticket span{font-size:14px;color:#D3E2EC}
.ok-box .tick.red{background:#F27A7A}
.slot.free:active,.t-card:active{transform:scale(.98)}
@media (prefers-reduced-motion:reduce){.loader span,.spin{animation:none}}

/* mobil: kompaktní kroky a informace o termínu */
@media (max-width:600px){
  .steps{flex-wrap:nowrap;gap:4px}
  .steps span{padding:4px 10px 4px 4px;font-size:12px}
  .steps span:not(.on){padding-right:4px}
  .steps span:not(.on) em{display:none}
  .event{gap:6px}
  .event span{padding:7px 12px;font-size:13px}
  .head .btns{width:100%}
  .head .btns .btn{flex:1;padding:10px 12px;font-size:14px}
  .t-card{padding:14px;gap:12px}
  .av{width:46px;height:46px;font-size:16px;border-radius:14px}
}
.powered{display:flex;align-items:center;gap:8px;text-decoration:none;color:#7A8B97;font-size:11px;letter-spacing:.04em;opacity:.85;transition:opacity .15s}.powered:hover{opacity:1}.powered small{font-size:11px}.pp-logo{display:inline-flex;gap:.32em;align-items:center;background:#172240;border-radius:6px;padding:5px 9px 4px;font-size:12px;line-height:1;font-weight:800;letter-spacing:-.01em}.pp-logo b{color:#F4F2EC;font-weight:800}.pp-logo i{color:#E9531F;font-style:normal;font-weight:800}
