/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal.success .modal-header i {
    color: #4CAF50;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal.success .modal-header h3 {
    color: #2c3e50;
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.modal .modal-body p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-btn-close {
    background-color: #f5f5f5;
    color: #333;
}

.modal-btn-close:hover {
    background-color: #e0e0e0;
}

.btn-primary {
    background-color: #333;
    color: white;
}

.btn-primary:hover {
    background-color: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

/* Modal Header */
.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #a67f83;
    font-size: 1.5rem;
}

/* Modal Body */
.modal-body {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Modal Buttons */
.modal-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-btn-close {
    background-color: #a67f83;
    color: white;
}

.modal-btn-close:hover {
    background-color: #8c6a6e;
    transform: translateY(-2px);
}

/* Error State */
.modal.error {
    border-left: 5px solid #e74c3c;
}

.modal.error .modal-header h3 {
    color: #e74c3c;
}

.modal.error .modal-body {
    color: #e74c3c;
    font-weight: 500;
}

/* Warning State */
.modal.warning .modal-header h3 {
    color: #f39c12;
}

/* Success State */
.modal.success .modal-header h3 {
    color: #2ecc71;
}

/* Input Error State */
.input-error {
    border-color: #e74c3c !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}





.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


