﻿/* =====================================================
   MODALS.CSS - Modal Components
   ===================================================== */

/* ==================== SUCCESS MODAL ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

    .modal-header h3 {
        margin: 0;
        color: #27ae60;
        font-size: 1.5rem;
    }

.modal-body {
    padding: 25px;
}

    .modal-body p {
        margin-bottom: 15px;
        font-size: 1rem;
        line-height: 1.6;
    }

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

    .modal-footer .btn {
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s;
    }

    .modal-footer .btn-primary {
        background: #3498db;
        color: #fff;
    }

        .modal-footer .btn-primary:hover {
            background: #2980b9;
        }

    .modal-footer .btn-secondary {
        background: #95a5a6;
        color: #fff;
    }

        .modal-footer .btn-secondary:hover {
            background: #7f8c8d;
        }

/* ==================== ALERT MESSAGES ==================== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    color: #c62828;
    border-left: 4px solid #f44336;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.1);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* ==================== PROMOTION INFO ==================== */
.promotion-info {
    margin-top: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-info .icon-info::before {
    content: "ℹ️";
    font-size: 1.2rem;
}

.promotion-info span {
    flex: 1;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
    }
}
