/**
 * Hlavní styly aplikace
 * 
 * Obsahuje:
 * - Základní nastavení a proměnné
 * - Styly pro přihlašování
 * - Stylování menu
 * - Vzhled kalendáře
 * - Responsivní design
 */

:root {
    /* Globální proměnné pro barvy */
    --barvapozadi: #f4f4f4; 
    --barvapisma1: #000000;
    --test:#c00000;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--barvapozadi);
    color: var(--barvapisma1);
}

/** prihlasovani */
.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    animation: start-anim 0.5s;
    -webkit-animation: start-anim 0.5s;
}

.prihlasovaci {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 250px;
    background: var(--barvapozadi);
    color: var(--barvapisma1);
    border-radius: 5px;
    box-shadow: 0 1 10px rgba(235, 8, 8, 0.5);

}

.prihlasovaci input {
    line-height: 150%;
    font-size: .85em;
    width: 100%;
    padding: 5px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.prihlasovaci input:hover {
    animation: animace 0.3s;
    -webkit-animation: animace 0.3s;
}

.prihlasovaci input[type="submit"]:hover {
    line-height: 150%;
    font-size: .85em;
    width: 100%;
    padding: 5px;
    margin: 10px 0;
    background-color: yellowgreen;
    border: 1px solid #5116f3;
    border-radius: 5px;
    animation: animace 0.5s;
    -webkit-animation: animace 0.5s;
}

.prihlasovaci label {
    display: block;
    text-align: center;
    line-height: 150%;
    font-size: .85em;
    width: 100%;
    padding: 5px;
    margin: 10px 1;
    border: 1px solid #ccc;
    border-radius: 5px;

}

@keyframes start-anim {
    0% {
        height: 0;
        opacity: 0;
    }

    100% {
        height: 100vh;
        opacity: 1;
    }
}

@keyframes animace {
    0% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }

    25% {
        transform: rotate(2deg);
        -webkit-transform: rotate(2deg);
        -moz-transform: rotate(2deg);
        -ms-transform: rotate(2deg);
        -o-transform: rotate(2deg);
    }

    50% {
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
    }

    75% {
        transform: rotate(-2deg);
        -webkit-transform: rotate(-2deg);
        -moz-transform: rotate(-2deg);
        -ms-transform: rotate(-2deg);
        -o-transform: rotate(-2deg);
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
    }
}

.login-error {
    display: flex;
    position: relative;
    text-align: center;
    top: 20%;
    justify-content: center;
    align-items: center;
    font-size: 150%;
    color: red;
}

/** menu */
.menu-hamburger {
    display: none;
    width: 40px;
    background-color: #adadad;
    position: fixed; /* Změna na fixed */
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.menu-hamburger__bar {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 999;
    width: 40px;
    height: 5px;
    background-color: var(--barvapisma1);
    margin-top: 5px;
    color: var(--barvapisma1);
    cursor: pointer;
}

.menu-button {
    display: inline;
    position: fixed; /* Změna na fixed */
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: var(--barvapozadi);
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-button button {
    width: 150px;
    height: 1.5rem;
    text-align: center;
    background: rgb(112, 111, 111);
    margin-top: 10px;
    color: var(--barvapisma1);
    cursor: pointer;
    border: 1px solid green;
    border-radius: 0px 5px 0px 10px;
    -webkit-border-radius: 0px 5px 0px 10px;
    -moz-border-radius: 0px 5px 0px 10px;
    -ms-border-radius: 0px 5px 0px 10px;
    -o-border-radius: 0px 5px 0px 10px;
}

.menu-button button:hover {
    width: 150px;
    text-align: center;
    background: rgb(145, 170, 145);
    margin-top: 10px;
    color: var(--barvapisma1);
    cursor: pointer;
}

/* Přidání odsazení pro obsah pod menu */
#vysledek1 {
    padding-top: 60px; /* Přidáno pro odsazení obsahu pod fixním menu */
}

/**
 * Responsivní design
 * - Mobilní zobrazení
 * - Tablet zobrazení
 * - Desktop zobrazení
 */
@media only screen and (max-width: 600px) {
    .menu-hamburger {
        display: block;
    }

    .menu-button {
        display: none;
        position: fixed; /* Změna na fixed */
        top: 50px; /* Posunuto pod hamburger menu */
        left: 0;
        width: 100%;
        background-color: var(--barvapozadi);
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .menu-button button {
        display: inline;
        width: 100%;
        height: 2.5rem;
        text-align: center;
        background: rgb(112, 111, 111);
        color: var(--barvapisma1);
        cursor: pointer;
    }

    .menu-button button:hover {
        width: 100%;
    }
}

/**
 * Styly pro kalendář
 * - Mřížkové rozložení
 * - Barevné značení dnů
 * - Stylování událostí
 */
.calendar {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    padding: 0px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    
}

.calendar-title {
    text-align: center;
    margin-bottom: 0px;
    font-size: 24px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: #adabab;
}

.calendar-day {
    text-align: center;
    padding: 5px;
    background: #a1a0a0;
    border: 1px solid #eee;
    
    min-height: 6rem;
}

.calendar-day.empty {
    background: #fff;
    border: none;
}

.calendar-day.current {
    background: #e0ffe0;
    font-weight: bold;
}
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-nav-btn {
    padding: 5px 15px;
    text-decoration: none;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
}

.calendar-nav-btn:hover {
    background: #e0e0e0;
}
.calendar-day {
    min-height: 80px;
    padding: 5px;
    overflow-y: auto;
}
.nastavbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 0px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 70%;
    max-width: 800px;
    min-height: 5rem;
}

.nastavbox form {
    width: 100%;
    max-width: 600px;
}

.nastavbox:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nastavbox input {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    box-sizing: border-box;
}

.nastavbox label {
    display: block;
    text-align: left;
    width: 100%;
    margin: 1px 0;
    padding: 5px 0;
}

.nastavbox input[type="submit"] {
    display: block;
    width: 100%;
    margin: 15px 0;
    padding: 10px;
    background-color: #f3f39b;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nastavbox .neco {
    display: block;
    width: 100%;
    background-color: rgb(239, 255, 195);
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nastavbox {
        width: 85%;
        padding: 15px;
        margin: 10px auto;
    }

    .nastavbox input,
    .nastavbox label {
        font-size: 14px;
    }

    .nastavbox input[type="submit"] {
        padding: 12px;
    }

    .nastavbox table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .nastavbox {
        width: 88%;
        padding: 10px;
    }

    .nastavbox .neco {
        font-size: 16px;
    }

    .nastavbox input[type="submit"] {
        width: 100%;
    }
}
input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Styly pro edit_user stránku */
.edit-form {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edit-form input,
.edit-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.edit-form button,
.action-button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background-color: #f3f39b;
}

.edit-form button:hover,
.action-button:hover {
    background-color: #e0e090;
}

.danger-button {
    background-color: #ff4444 !important;
    color: white;
}

.warning-button {
    background-color: #ff9800 !important;
    color: white;
}

.back-button {
    background-color: #666 !important;
    color: white;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    background-color: #e8f5e9;
    color: #2e7d32;
}
.footer { 
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 1,2rem;
    background: var(--barvapozadi);
    color: var(--barvapisma1);
    border-top: 1px solid #ccc;
}

/* Rodičovský element */
.parent-container {
    text-align: center; /* Zarovnání obsahu na střed */
}

/* Cílový element */
.inline-element {
    display: inline; /* Zachování inline zobrazení */
    width: 100%; /* Zajištění 100% šířky */
    color: red;
     
}
 .bublina_info {
    display: inline-block;
    position: fixed;
    bottom: 10px; /* Pozice bubliny od spodní části okna */
    right: 1%; /* Pozice bubliny od levého okraje okna */
   margin: 5px 0;
    max-width: 30px;   
   
    text-align: left;
    font-family: Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
   cursor: pointer;    
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto; /* Vycentrování bubliny */
    text-align: center; /* Zarovnání textu na střed */
    border: 1px solid #ccc; /* Přidání okraje */
   background-color: #f0ecec; /* Světlejší pozadí pro lepší čitelnost */
    color: #333; /* Tmavší text pro lepší kontrast */
    font-size: 14px; /* Zmenšení velikosti písma pro lepší přehlednost */
    padding: 10px; /* Přidání vnitřního odsazení pro lepší vzhled */
    border-radius: 5px; /* Zaoblení rohů pro modernější vzhled */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Přidání stínu pro hloubku */
    transition: background-color 0.3s ease; /* Přidání efektu při najetí myší */
    cursor: pointer; /* Změna kurzoru na ukazatel při najetí myší */
 }
 .bublina_info_skryj
 {
    display:none;
 }
.bublina_info:hover .bublina_info_skryj {
    display: block; /* Zobrazí se bublina při najetí myší */
    width: 200px;
    background-color: #fff; /* Pozadí bubliny při najetí myší */
    color: #000; /* Barva textu při najetí myší */
    border: 1px solid #ccc; /* Okraj bubliny při najetí myší */
    padding: 10px; /* Vnitřní odsazení bubliny při najetí myší */
    border-radius: 5px; /* Zaoblení rohů bubliny při najetí myší */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Stín bubliny při najetí myší */
    text-align: left;
    font-family: Arial, sans-serif; /* Písmo bubliny při najetí myší */
    font-weight: normal; /* Tloušťka písma bubliny při najetí myší */
    line-height: 1.5; /* Řádkování bubliny při najetí myší */
    cursor: pointer; /* Změna kurzoru na ukazatel při najetí myší */
    z-index: 1; /* Zajištění, že bublina bude nad ostatními prvky */
    
}
.bublina_info:hover 
{   
   
    background-color:transparent; /* Pozadí bubliny při najetí myší */
    color: #a00; /* Barva textu při najetí myší */
    right: 210px; /* Pozice bubliny od levého okraje okna */
    margin: 5px 0;
      
}
.dovolenavybrana {
    text-align: center;
    font-size: 0.8em;
    color: #2f00ff;
    margin-top: 10px;
}
.nastavbox1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2px auto;
    padding: 0px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 70%;
    max-width: 800px;
    font-family:  Arial, sans-serif;
    font-size: 1em;
    min-height: 1.5rem;

}
.nastavbox1 select {
   border-radius: 5px;
   margin: 10px 0;
   padding: 2px;
   box-sizing: border-box;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   -ms-border-radius: 5px;
   -o-border-radius: 5px;
}

/* Modální okno pro poznámky */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close:hover {
    color: black;
}

/* Mobilní styly pro kalendář */
@media only screen and (max-width: 600px) {
    .calendar {
        width: 95%;
        margin: 10px auto;
        padding: 5px;
    }
    
    .calendar-day {
        min-height: 7rem; /* Zvětšíme výšku pro mobil */
        padding: 3px;
        font-size: 12px;
    }
    
    .calendar-title {
        font-size: 18px;
    }
    
    .calendar-header {
        padding: 8px 2px;
        font-size: 12px;
    }
    
    /* Zvětšíme font pro události na mobilu */
    .calendar-event {
        font-size: 1em !important; /* Přepíšeme inline styl */
        margin: 1px 0 !important;
        padding: 3px !important;
        line-height: 1.2 !important;
    }
    
    /* Zajistíme aby ikony byly dostatečně velké */
    .calendar-event .type-icon,
    .calendar-event .note-icon {
        font-size: 1.2em !important;
        margin-left: 2px !important;
        display: inline-block;
    }
    
    .calendar-event .user-prefix {
        font-weight: bold;
    }
    
    .calendar-event .reason-text {
        font-size: 0.8em !important;
    }
}

@media only screen and (max-width: 480px) {
    .calendar-day {
        min-height: 8rem; /* Ještě větší výška pro velmi malé obrazovky */
        font-size: 11px;
    }
    
    .calendar-event {
        font-size: 1.1em !important;
        padding: 4px !important;
    }
    
    .calendar-event .type-icon,
    .calendar-event .note-icon {
        font-size: 1.3em !important;
    }
}