/**
 * ============================================
 * ABHYASA EVENT - SHARED STYLES
 * ============================================
 * Common CSS used across all pages (admin, user, my-reservations)
 */

/* Global Message System */
.global-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
    display: none;
}

.global-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.global-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.global-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Confirmation Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.modal-message {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Toast Notification (for admin) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    animation: slideInRight 0.3s ease-out;
}

.toast.show {
    display: block;
}

.toast-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.toast-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.toast-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
