body {
    margin: 0;
    font-family: sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: start;
    height: 100vh;
}
button.install {
    display: none; /* bude p�eps�no na display: block p�es JS */

    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background-color: #d9534f; /* Bootstrap �danger� �erven� */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.container {
    text-align: center;
    padding: 30px 20px;
    max-width: 400px;
    width: 100%;
}
.header {
    align-items: center;
  justify-content: center;
    position: relative;
}
.header .back
{
    font-size:50px;
    text-decoration:none;
    color:#b80000;
    width:50px;
    position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
    font-weight:900;
}

.logo {
    max-width: 100%;
    height: auto;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

    .menu .tile {
        background-color: #CD5C5C;
        color: white;
        padding: 20px;
        border-radius: 16px;
        cursor: pointer;
        transition: transform 0.2s ease;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
        text-decoration: none;
    }

        .menu .tile:hover {
            transform: scale(1.05);
        }

    .menu .icon {
        font-size: 60px;
        width: 100%;
    }
.menu .icon img
{
    max-width:50%;
}

    .menu .label {
        font-size: 16px;
        font-weight: bold;
        color: white;
        text-decoration: none;
    }

.hlaseni {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .hlaseni label {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .hlaseni input[type="text"],
    .hlaseni textarea {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .hlaseni .upload-btn {
        width: 100%;
        padding: 12px;
        background: white;
        color: #b80000;
        border: 2px solid #b80000;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

        .hlaseni .upload-btn .icon {
            background: url('images/foto.png') no-repeat center;
            width: 30px;
            height: 30px;
            background-size: contain;
            display: inline-block;
        }

        .hlaseni .upload-btn:hover {
            background: #b80000;
            color: white;
        }
    .hlaseni .input-wrapper {
        position: relative;
        display: inline-block;
    }

    .hlaseni #realizace {
        padding-right: 25px; /* prostor pro křížek */
    }

    .hlaseni .clear-btn {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 1.5em;
        color: #888;
        display: block;
        color:#b80000;
        
    }

.preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    gap:10px;
}
.img_preview
{
    display:flex;
    flex-wrap:wrap;
    width:45%;
    align-items:start;
    position:relative;
   
}
   .img_preview img {
        width: 100%;
        height: 100px;
        object-fit: contain;
        border-radius: 8px;
        border: 1px solid #ccc;
    }
.img_preview .remove-btn{
    position:absolute;
    top:-10px;
    right:0;
    color:#b80000;
    font-size:30px;
    
}

.submit-btn {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    background-color: #b80000;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .submit-btn:hover {
        background-color: #990000;
    }

.dochazka {
    padding: 10px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #343a40;
}

    .dochazka h1,
    .dochazka h2,
    .dochazka h3 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .dochazka table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1rem;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }


    .dochazka th, .dochazka td {
        padding: 5px;
        text-align: left;
        border-bottom: 1px solid #dee2e6;
        font-size: 12px;
    }
.text-right
{
    text-align:right !important;
}
.dochazka tr.Svatek, .dochazka tr.Svatek td
{
    background:#faf4ea;
    
}


       .dochazka td.casy,   .dochazka td.hodiny {
            font-family: "Roboto", "Open Sans", sans-serif; 
            
        }

    .dochazka .prehled-dochazky td {
    }

    .dochazka thead {
        background-color: #e9ecef;
    }

  

    .dochazka .edit-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.1rem;
        color: #007bff;
        transition: color 0.2s;
    }

        .dochazka .edit-btn:hover {
            color: #0056b3;
        }

.overflow-auto {
    overflow: auto;
}

.help_div_white {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: left;
}

.filtr-mesice {
    gap: 10px;
}

.filtr-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .filtr-btn:hover {
        background-color: #d0d0d0;
    }

    .filtr-btn.aktivni {
        background-color: #b80000;
        color: white;
    }
.error-box {
    border: 1px solid #d93025;
    background-color: #fce8e6;
    color: #a61b1b;
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
}
.success-box {
    border: 1px solid #34a853;
    background-color: #e6f4ea;
    color: #202124;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-family: sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

    .success-box h1 {
        margin-top: 0;
        font-size: 20px;
        color: #0b5e27;
    }

    .success-box .success-icon {
        font-size: 36px;
        color: #0b5e27;
        float: right;
        margin-left: 10px;
    }

    .success-box button,.success-box a {
        margin-top: 12px;
        margin-bottom:12px;
        padding: 8px 12px;
        background-color: #34a853;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        display:inline-block;
            text-decoration:none;
    }

.success-box button:hover {
    background-color: #2c8b45;
}

.edit {

  font-family: "Segoe UI", Tahoma, sans-serif;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    font-size:15px;
    padding:15px 0px;

}

    .edit textarea {
        width: 100%;
        min-height: 100px;
        margin-top: 0.5rem;
        padding: 0.75rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 1rem;
        resize: vertical;
    }

    .edit input[type=button] {
        margin-top: 0.75rem;
        margin-right: 0.5rem;
    }

       
    .edit::before {
        content: "✏️ ";
        font-size: 1.1rem;
        margin-right: 0.5rem;
        vertical-align: middle;
        color: #007bff;
    }
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 24px 32px;
    border-radius: 10px;
    background-color: #28a745; /* výchozí zelená */
    color: white;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

    .popup.error {
        background-color: #dc3545; /* červená */
    }

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

#popup-close-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    padding: 8px 16px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

    #popup-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

