/* --- MODÁLNÍ DIALOGY A NASTAVENÍ (CLIENT) --- */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: var(--bg-dark);
    padding: 24px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #333;
    max-width: 440px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.settings-box {
    margin: 15px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.settings-check {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.settings-text {
    font-size: 1.05em;
    color: white;
    line-height: 1.3;
}

.settings-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.settings-tip {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.35;
    padding: 6px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.fab-back-button {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(30, 30, 47, 0.88);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-size: 26px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    z-index: 99;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.15s, background 0.2s;
}
.fab-back-button:active {
    transform: scale(0.92);
}
