/* Stiluri pentru modalele de programare */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.modal-header {
    padding: 20px 25px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-success .modal-header {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.8), rgba(39, 174, 96, 0.9));
    color: white;
}

.modal-warning .modal-header {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.9));
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin: 0 0 15px;
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.modal-success .modal-icon {
    color: #27ae60;
    background-color: rgba(46, 204, 113, 0.1);
}

.modal-warning .modal-icon {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background-color: #8e44ad;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #9b59b6;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.modal-warning .modal-btn-primary {
    background-color: #e74c3c;
    color: white;
}

.modal-warning .modal-btn-primary:hover {
    background-color: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.modal-btn-secondary {
    background-color: #f1f2f6;
    color: #444;
}

.modal-btn-secondary:hover {
    background-color: #e3e3e3;
}

.modal-content {
    text-align: center;
}

/* Animate icons */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.modal-success .modal-icon i {
    animation: bounce 1s ease;
}

@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

.modal-warning .modal-icon i {
    animation: shake 0.8s ease;
}