/* MODAL CSS - KOMPLETNÍ NOVÝ DESIGN */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-overlay.active {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 35, 70, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    width: 90%;
    max-width: 500px;
    color: #00ffff;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.modal-content h2 {
    color: #00ffff;
    margin-bottom: 25px;
    font-size: 1.8em;
    letter-spacing: 2px;
    font-weight: bold;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #00ffff;
    text-align: left;
    font-size: 1em;
}

.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content input[type="hidden"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    background: rgba(10, 20, 50, 0.6);
    color: #00ffff;
    font-size: 1em;
    font-family: 'Courier New', monospace;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="url"]:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(10, 20, 50, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.modal-buttons button {
    flex: 1;
    padding: 12px 25px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#saveEditButton {
    background: rgba(0, 150, 100, 0.6);
    color: #fff;
    border-color: rgba(0, 255, 150, 0.5);
}

#saveEditButton:hover {
    background: rgba(0, 180, 120, 0.8);
    border-color: rgba(0, 255, 150, 0.8);
}

#saveEditButton:active {
    transform: scale(0.98);
}

#cancelEditButton {
    background: rgba(150, 50, 50, 0.6);
    color: #fff;
    border-color: rgba(255, 100, 100, 0.5);
}

#cancelEditButton:hover {
    background: rgba(180, 80, 80, 0.8);
    border-color: rgba(255, 150, 150, 0.8);
}

#cancelEditButton:active {
    transform: scale(0.98);
}

/* Responzivita */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 30px;
    }
    
    .modal-content h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3em;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}