/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 3. 12. 2024, 23:35:13
    Author     : micha
*/

/*
promenne
*/
@import url("variable/variable.css");

/*Obecne styly*/
body{
    font-family: Arial, sans-serif;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    font-size: 80%;
    letter-spacing: 0.1rem;
}
/*Konec obecnych stylu*/

/** Vypis knih */
.obal_akce_vypisKnihy{
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.telo_akce_vypisKnihy{
    width: 800px;
    text-align: center;
    color: var(--font-color);
}
.buttonZalozKnihuVypisKnyhy a, .seznamKnihTable_ajax_generujVypisKnih a{
    color:var(--font-color);
    padding: 0.5rem 1rem;
    border-radius:50px;
    background: var(--bacground-button-neactive);
    text-decoration: none;
    display: inline-block; /* aby se transform aplikoval správně */
    font-weight: normal;
    position: relative; /* pro pseudo-prvek animace pozadi */
    overflow: hidden; /* schova presahujíci pozadi */
    transition:
        transform 0.2s ease-in-out,
        font-weight 0.3s ease-in-out,
        box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* jemny stin pro 3D efekt */
}
/** Animace pozadi */
.buttonZalozKnihuVypisKnyhy a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: var(--background-button-hover); /* šedé pozadí */
    z-index: -1; /* pod text */
    transition:
        width 0.3s ease-in-out,
        left 0.3s ease-in-out;
}
/* Animace tuocne pismo + zmena na bold*/
.buttonZalozKnihuVypisKnyhy a:hover{
    transform: scale(1.1);/*Po najeti mysi zvetsim o 10%*/
    font-weight: bold;/* Zmena na bold*/
}
/*Animace pozadi*/
.buttonZalozKnihuVypisKnyhy a:hover::before {
    width: 100%;
    left: 0;
}
/* Propadnuti pri kliknuti */
.buttonZalozKnihuVypisKnyhy a:active {
    transform: scale(1.05) translateY(2px); /* lehce stlaceno dolu */
    box-shadow: 0 2px 3px rgba(0,0,0,0.2); /* mensi stin pri stisku */
}

.seznamKnihTable_ajax_generujVypisKnih {
    width: 100%;
    border-collapse: collapse;
}

.seznamKnihTable_ajax_generujVypisKnih td {
    /* padding: 0.5rem; */
    border-bottom: 1px solid #ddd;
}

.seznamKnihTable_ajax_generujVypisKnih a {
    text-decoration: none;
    color: var(--font-color);
}
.seznamKnihTable_ajax_generujVypisKnih a{
    background: initial;
    box-shadow: initial;
}
.seznamKnihTableOdkazKniha_ajax_generujVypisKnih{
    padding-left: 30px !important;
    background-image: url('../img/svg/otevrena-kniha.svg') !important;
    background-repeat: no-repeat !important;
    background-size: 25px 25px !important;
    background-position: left center !important;
}

#pocetKnih_akce_vypisKnihy{
    margin-bottom: 0.5rem;
}
.obal_ajax_generujVypisKnih{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
    align-items: center;
}
.telo_ajax_generujVypisKnih{
    width: 50%;
    text-align: start;
}
.telo_ajax_generujVypisKnih ul{
    list-style: none;
}
.telo_ajax_generujVypisKnih ul li a{
    text-decoration: none;
}
/*Formular modal pro editaci knih*/
#formUlozKnihu-response h2{
    color: var(--font-color);
    font-size: 1.5rem;
}
.modalVysledekAkceUlozeniKnihy{
    line-height: 1.8rem;
    text-align: center;
    margin: 2rem;
}
#formUlozKnihu{
    display: flex;
    flex-direction: column;
}
#formUlozKnihu div{
    color:var(--font-color);
    display:flex;
    flex-direction: column;
    margin: var(--inputForm-dmargin-bottom) 0;
}
#formUlozKnihu div > label{
    margin-bottom: var(--inputForm-dmargin-bottom);
}
#formUlozKnihu > div > input{
    color:var(--font-color);
    height: var(--inputFormModal-height);
    border-radius: 5px;
    border: 1px solid var(--font-color);
    width: 100%;
}
#formUlozKnihu #poradi_knihy{
    height: var(--inputFormModal-height);
    width: 12ch;
    text-align: center;
    margin-bottom: var(--inputForm-dmargin-bottom);
}
/*Konec formular modal pro editaci knih*/
/* Konec vypis knih*/


/*Modal oknov pro knihy*/
.formKnihyVypisKnihy_modal, .modal-customAlert {
    display: none; /* Skryté ve výchozím stavu */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Poloprůhledné pozadí */
}
.formKnihyVypisKnihy_content, .modal-customAlert-content {
    background-color: #fefefe;
    margin: 15% auto; /* Vertikální a horizontální zarovnání */
    padding: 20px;
    border: 1px solid #888;
    width: auto;
    height: fit-content;
    min-width: 30%;
    max-width: 50%;
    border-radius: 10px;
}
.formKnihyVypisKnihy_close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.formKnihyVypisKnihy_close:hover,
.formKnihyVypisKnihy_close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
#akce_vypisKnihyVypisKnih li{
    margin: 1rem 0;
}
#akce_vypisKnihyVypisKnih li span{
    display: inline-block;
    background-color: #ffb23b;
    color: #000;
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-left:1rem;
}

/* Sablona pro editaci kapoitol */
.telo_sab_editujKnihu{
    display: flex;
}
/** Pred resize 
.kapitoly_akce_editujKnihu{
    border-right: 2px solid rgba(0, 0, 0, 0.3);

    box-shadow: 5px 0px 0px rgba(0, 0, 0, 0.1);

    min-height: 97vh;
    align-content: baseline;
    width: 40%;
    text-align: left;
    margin-top: 1rem;
}
**/

/** Po resize **/
.kapitoly_akce_editujKnihu {
    position: relative;
    border-right: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 5px 0px 0px rgba(0, 0, 0, 0.1);
    min-height: 97vh;
    align-content: baseline;
    width: 20%;
    min-width: 20rem;
    text-align: left;
    margin-top: 1rem;
}
.tlacitkoZpetNaKnihy_akce_editujKnihu{
    display: inline-block;
    text-decoration: none;
    font-size: 70%;
    color: var(--font-color);
    padding-left: 22px !important;
    min-height: 1.5rem;
    line-height: 1.5rem;
    background-image: url('../img/svg/sipka-zpet.svg') !important;
    background-repeat: no-repeat !important;
    background-size: 17px 17px !important;
    background-position: left center !important;
}

.kapitoly_akce_editujKnihu .resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 100%;
    cursor: ew-resize;
    z-index: 10;
}
/** Konec po resize */

/** seznam kapitol strom**/
/*.seznamKapitol_ajax_seznamKapitolVknize li{
    list-style: none;
}*/

.seznamKapitol_ajax_seznamKapitolVknize {
    list-style: none;
    padding-left: 0;
    margin: 0;
    line-height: 1.8rem;
    /*margin-bottom: 1rem;*/
}

.seznamKapitol_ajax_seznamKapitolVknize a {
    position: relative;
    display: inline-block;
    padding-left: 30px; /* prostor pro ikonu vlevo */
    background-image: url('../img/svg/otevrena-kniha.svg');
    background-repeat: no-repeat;
    background-size: 25px 25px;
    background-position: left center;
    text-decoration: none;
    color: inherit;
}
/** Ikona pro klikani na zbaleni kapitoly */
.kapitol-icon-clickzone {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.seznamKapitol_ajax_seznamKapitolVknize a.collapsed {
    background-image: url('../img/svg/kniha-zavrena.svg');
    background-size: 20px 20px;
}

.seznamKapitolChildren_ajax_seznamKapitolVknize{
    margin-left: 2rem;
}
.seznamKapitolChildren_ajax_seznamKapitolVknize li{
    line-height: 1.5rem;
}
/** KOnec stromu seznamu kapitol **/


#pocitadloKapitol_akce_editujKnihu{
    margin: 1rem 0;
}
.nadpisKapitoly_ajax_kapitolaCteni{
    width: 95%;
    font-size: 160%;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.nadpisKapitoly_ajax_kapitolaCteni span{
    display: inline-block;
    font-size: 60%;
}
.TextKapitol_akce_editujKnihu{
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}
#formEditaceKapitoly_akce_editujKnihu{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pridejNovyOdstavec_p{
    width: 100%;
    text-align: center;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}
.ulozeni_ok {/*Zvyrazneni editovaneho odstavce*/
    background-color: #d6f9db !important;
    border: 2px solid #0ef72d !important;
    border-radius: 10px;
    transition: background-color 1.5s, border-color 1.5s;
}
/* Postupne mizeni zvyraznene polozky */
.ulozeni_ok.ulozeni_ok-fade {
    background-color: transparent !important;
    border-color: transparent !important;
}
.ulozeni_err {/*Zvyrazneni editovaneho odstavce*/
    background-color: #f7c8c8 !important;
    border: 2px solid #f43030 !important;
    border-radius: 10px;
    transition: background-color 1.5s, border-color 1.5s;
}
/* Postupne mizeni zvyraznene polozky */
.ulozeni_err.ulozeni_err-fade {
    background-color: transparent !important;
    border-color: transparent !important;
}
.odstavce_ajax_kapitolaCteni{
    text-align: left;
    padding: 0 2rem;
}
.odstavce_ajax_kapitolaCteni p{
    padding: 0.5rem;
    border:2px solid white;
}
.pridatOdstavce_ajax_kapitolaCteni{
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../img/svg/plus-pridani.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: relative;
    border: 1px solid #ccc;
}
.pridatOdstavce_ajax_kapitolaCteni a{
    position: absolute;
    inset: 0; /* zkráceně: top: 0; right: 0; bottom: 0; left: 0; */
    display: block;
    text-decoration: none;
}

.odstavec-edit{
    margin: 0 1rem;
    cursor: pointer;
}
.textarelaLabel{
    position: relative;
    width: 100%;
    height: 2rem; /* nebo jiná výška podle potřeby */
    /*display: flex;
  flex-direction: row;*/
}
.textarelaLabel .centerLabel{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 90%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.textarelaLabel .rightGroup{
    position: absolute;
    right: 0;
    top: 90%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.textarelaLabel .labelPoradi{
    display:flex;
    flex-direction: row;
    margin-bottom: 1rem;
}
.textarelaLabel .labelPoradi .labelPoradiPopisek{
    display: flex;
    align-items: end;
    margin-right:0.5rem;
}
.labelPoradiPopisek label, .centerLabel label{
    font-weight: inherit !important;
}
.form-wrapper .EditaceOdstavceH2{
    font-size: 120%;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
#formKapitola .textarea{
    width: 100%;
    margin: auto;
}
#formKapitola .textarelaLabelDiv{
    width: 100%;
    margin: 0 0rem 1rem;
}


.buttonPridatKapitolu_akce_editujKnihu a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px #9b9696, -1px -1px 2px #797676;
}
.buttonPridatKapitolu_akce_editujKnihu{
    border: 1px solid #635f5f;
    background-color: #a9a5a5;
    width: 12rem;
    min-height: 3rem;
    margin: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
}
.buttonySekce_akce_editujKnihu{
    display:flex;
    flex-direction:row;
    justify-content: center;
}
.alertObal{
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 5rem;
}
.alert{
    padding: 5rem;
    border: 1px solid red;
    background-color: #f09c9c;
    text-align: center;
}


/*Nastroj pro vkladani hromadneho textu -  toto potom ocesat - bude se vkladat do databaze*/
/* Zakladni styl textarea */
.teloForm_ajax_formKapitolaHromadne{
    display:flex;
    flex-direction: column;
    width: 100%;
}
.teloForm_ajax_formKapitolaHromadne form{
    width:100%;
}
.teloForm_ajax_formKapitolaHromadne textarea {
    width: 80%;
    height: 30rem;
    border: 1px solid #ccc;
    padding: 10px;
}

/* Styl pro simulaci stranky A4 */
.a4-page_ajax_formKapitolaHromadne {
    width: 21cm; /* Delka stranky A4 */
    height: 29.7cm; /* Vyska stranky A4 */
    margin: 10px auto; /* Automaticke zarovni na stred*/
    padding: 3.5cm; /* Okraje stranka */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Stinovani okreje stranky */
    background-color: white; /* Barva pozadi stranky */
    box-sizing: border-box;
    position: relative;
    page-break-after: always; /* Zlom stranky A4 */
}

/* Formatovani text uvnitr stranky A4 */
.formatted-text_ajax_formKapitolaHromadne {
    max-width: 100%; /* Maximalni sirka textu uvnitr stranky */
    text-align: justify; /* Justifikace textu */
}

/* Styl pro odsazeni text (prvni­ radek odstavce) */
.indented_ajax_formKapitolaHromadne {
    text-indent: 40px; /* Posunuti­ prvni­ho radku o tabulator */
    margin-top: 0; /* Odstraneni­ horni­ho okraje */
    margin-bottom: 0; /* Odstraneni spodni­ho okraje */
}

/* Styl pro nadpisy */
.centered_ajax_formKapitolaHromadne {
    text-align: center; /* Zarovnani nadpisu na stred */
    font-weight: bold;
}
/*KOnec nastroje pro vkladani textu*/

/**Formular editace kapitoly a odstavcu*/
.form-wrapper {
    background-color: #f9f9f9;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.form-wrapper-odstavec{
    background-color: inherit;
    padding: inherit;
    width:100%;
    max-width: inherit;
    border-radius: inherit;
    box-shadow: inherit;
    margin: inherit;
    margin-bottom: 4rem;
}

#formKapitola > div{
    display:flex;
    flex-direction: column;
    align-items: baseline;
    width: 80%;
    margin: 0 3rem 1rem;
}
#formKapitola label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size:1rem;
}
#formKapitola input[type="text"],
#formKapitola textarea,
#formKapitola select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}
#formKapitola textarea{
    resize: vertical;
}
#formKapitola #note{
    resize: none;        /* Zakazani manuálni zvetsovani textarea*/
}
#formKapitola .date_formKapitola, #formKapitola .date_formOdstavec{
    display: flex;
    flex-direction: inherit;
}
#formKapitola .inputDate_formKapitola, #formKapitola .inputDate_formOdstavec{
    text-align: initial;
    margin: 0 1.5rem 0 0;
}
#formKapitola .date_formOdstavec{
    display:flex;
    flex-direction: row;
    justify-content: start;
    margin: 1rem 0;
}
#formKapitola .inputDate_formOdstavec{
    display: flex;
    flex-direction: row;
    align-items: inherit;
}
#formKapitola .inputDate_formOdstavec label{
    font-weight: normal;
    margin-right: 0.5rem;
}
#formKapitola .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: normal;
    color: #444;
}
#formKapitola #order{
    width: 5rem !important;
    /*height: 3rem !important;*/
}
#formKapitola button[type="submit"], #formUlozKnihu button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

#formKapitola button[type="submit"]:hover {
    background-color: #45a049;
}

#formKapitola .hidden {
    display: none;
}
/*Konec formulare pro editaci odstavcu*/

/** bublina napoveda**/
.bubble-div {
    position: relative;
    cursor: pointer; /* pro naznačení interakce */
}

.bubble-div::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A9A5A5;
    color: #fff;
    padding: 1rem 2rem;
    border: 1px solid #686565;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-size: 14px;
    z-index: 10;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
}

/* Na PC s myší – zobrazujeme pomocí :hover */

.bubble-div:hover::after {
    opacity: 1;
}


/* Na dotykových zařízeních – pomocí JS */
.bubble-div.active::after {
    opacity: 1;
    pointer-events: auto;
}


/*formular prihlaseni*/

.login-container {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid #e0e6eb; /* přidán jemný rámeček */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* zvýrazněn stín */
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
}

.login-container h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
    text-align: left;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #00b7c2;
    outline: none;
    background-color: #eefbfc;
}

.login-button {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, #00c4cc, #00a3b8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(to right, #009da8, #007f91);
}

.login-error {
    background-color: #ffe0e0;
    color: #a94442;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c2c2;
    border-radius: 6px;
    text-align: center;
}


.login-success {
    background-color: #e0ffe4;
    color: #2e7d32;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/*okénko ukazující přihlášeného uživatele */

.uzivatel-dropdown {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
    font-family: sans-serif;
}

.uzivatel-trigger {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.uzivatel-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    min-width: 8rem;
}

.uzivatel-dropdown:focus-within .uzivatel-menu {
    display: block;
}

.uzivatel-menu a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: block;
    padding: 0.25rem 0;
    text-align: center;
}

.uzivatel-menu a:hover {
    text-decoration: underline;
}


/*form pro ověřování SMS */
/* Kontejner celého ověřovacího formuláře */
.sms-overeni-form-wrap {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Základní odstavec */
.sms-overeni-form-wrap p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.2rem;
}

/* Skupiny formulářových prvků */
.form-group-sms {
    margin-bottom: 1.5rem;
}

/* Štítky */
.form-group-sms label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Vstupní pole */
.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
}

/* Tlačítko pro odeslání */
.btn.btn-primary {
    background-color: #007bff;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn.btn-primary:hover {
    background-color: #0056b3;
}

/* Chybová hláška */
.sms-error {
    background-color: #fbeaea;
    color: #b00;
    border: 1px solid #e0b4b4;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-size: 0.95rem;
}

/* Informační část s časem expirace */
.sms-info {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin-top: 1rem;
}

#sms-expirace-timer {
    font-weight: bold;
    /*color: #007bff;*/
}


.countdown-box {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    transition: color 0.4s ease;
    text-align: center;
    padding: 0.3rem 0;
}

@keyframes subtlePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes intensePulse {
    0%, 100% {
        transform: scale(1);
        color: #c0392b;
    }
    50% {
        transform: scale(1.05);
        color: #ff0000;
    }
}

.countdown-box.warning {
    color: #e67e22 !important;
    animation: subtlePulse 1.5s ease-in-out infinite;
}

.countdown-box.danger {
    color: #c0392b !important;
    animation: intensePulse 0.8s ease-in-out infinite;
}

#sms-expirace-timer.expired {
    color: #c0392b !important;
}

.resend-btn {
    background-color: #ffffff;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-block;
}

.resend-button-box {
    position: relative;
    display: inline-block;
}
.resend-btn-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.resend-btn:hover {
    background-color: #007bff;
    color: #ffffff;
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #aaa;
    cursor: default;
}

#resend-wrapper {
    margin-top: 1rem;
    text-align: center;
}


.cooldown-note {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.resend-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
}

.resend-confirmation {
    display: none;
    margin-top: 1rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    animation: pulseFade 1.5s ease-in-out infinite;
}


@keyframes pulseFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.sms-error.pulse {
    animation: pulseError 1.2s ease;
}

@keyframes pulseError {
    0%   {
        background-color: #fdd;
    }
    50%  {
        background-color: #fbb;
    }
    100% {
        background-color: #fdd;
    }
}

.back-to-login {
    margin-top: 1.5rem;
    text-align: left;
}

.back-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #007bff;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.back-link-btn .icon-left {
    stroke: #007bff;
    transition: stroke 0.3s ease;
}

.back-link-btn:hover .icon-left {
    stroke: #0056b3;
}


/*zakládání nové knihy - chyba */
.errorHlaseni {
    background-color: #ffe6e6; /* světle červené pozadí */
    border: 1px solid #cc0000; /* sytě červený okraj */
    color: #cc0000;            /* barva textu */
    border-radius: 6px;        /* zaoblení rohů */
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.4;
    animation: pulseFade 0.8s ease-out;
}



