
/* Enhanced Modal Alert System - Responsive Design */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(42, 42, 42, 0.9));
    border: 2px solid var(--gold);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    position: relative;
    animation: slideInScale 0.4s ease-out;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 30px 25px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal-header i {
    font-size: 2.5rem;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-body {
    padding: 20px 30px;
    text-align: center;
}

.modal-body p {
    color: var(--silver);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

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

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #ff6b6b, #e55353);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.modal-footer .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

/* Success Modal */
.modal-success .modal-content {
    border-color: #4CAF50;
}

.modal-success .modal-header i {
    color: #4CAF50;
}

.modal-success .modal-header h3 {
    color: #4CAF50;
}

/* Error Modal */
.modal-error .modal-content {
    border-color: #f44336;
}

.modal-error .modal-header i {
    color: #f44336;
}

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

/* Warning Modal */
.modal-warning .modal-content {
    border-color: #FFC107;
}

.modal-warning .modal-header i {
    color: #FFC107;
}

.modal-warning .modal-header h3 {
    color: #FFC107;
}

/* Info Modal */
.modal-info .modal-content {
    border-color: #2196F3;
}

.modal-info .modal-header i {
    color: #2196F3;
}

.modal-info .modal-header h3 {
    color: #2196F3;
}

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

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

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .modal-content {
        max-width: 600px;
        width: 85%;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }

    .modal-header h3 {
        font-size: 1.6rem;
    }

    .modal-body {
        padding: 15px 25px;
    }

    .modal-footer {
        padding: 15px 25px 25px;
    }
}

/* Mobile Responsive (up to 768px) */
@media (max-width: 768px) {
    .modal {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
        max-width: 90%;
        max-height: 85vh;
        border-radius: 15px;
    }

    .modal-header {
        padding: 20px 15px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .modal-header i {
        font-size: 2rem;
    }

    .modal-header h3 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 15px 20px;
    }

    .modal-body p {
        font-size: 1rem;
    }

    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .modal-footer .btn {
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        width: 98%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px 12px 12px;
    }

    .modal-header i {
        font-size: 1.8rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 12px 15px;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .modal-footer {
        padding: 12px 15px 15px;
        gap: 10px;
    }

    .modal-footer .btn {
        padding: 14px 18px;
        font-size: 1rem;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .modal {
        padding: 5px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        border-radius: 8px;
        margin: 0;
    }

    .modal-header {
        padding: 12px 10px 10px;
    }

    .modal-header i {
        font-size: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 10px 12px;
    }

    .modal-body p {
        font-size: 0.85rem;
    }

    .modal-footer {
        padding: 10px 12px 12px;
        gap: 8px;
    }

    .modal-footer .btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 10px 15px 8px;
    }

    .modal-header i {
        font-size: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 8px 15px;
    }

    .modal-footer {
        padding: 8px 15px 10px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
