﻿/**
 * Flash Messages CSS
 * Styles cho các thông báo popup trong website
 */

/* ==========================================
   GENERAL FLASH MESSAGES
   ========================================== */
.flash-message {
    padding: 12px 18px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.flash-message i {
    margin-right: 8px;
}

.flash-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* Success Messages */
.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error Messages */
.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Teams page error popup - giống home.php */
.question-error-popup {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.question-error-popup i {
    margin-right: 8px;
    color: #721c24;
}

/* Warning Messages */
.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Info Messages */
.flash-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================
   TEAMS PAGE - QUESTION SUCCESS POPUP
   ========================================== */
.question-success-popup {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

.question-success-popup i {
    margin-right: 8px;
    color: #155724;
}

.question-success-popup .flash-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #155724;
    opacity: 0.7;
}

.question-success-popup .flash-close:hover {
    opacity: 1;
}

/* ==========================================
   JOB APPLICATION - POPUP THÔNG BÁO
   ========================================== */
.job-flash-message {
    padding: 15px 20px;
    margin-top: 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    position: relative;
    animation: slideDown 0.3s ease-out;
    display: block;
    width: 100%;
}

.job-flash-message i {
    margin-right: 10px;
    font-size: 16px;
}

.job-flash-message.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.job-flash-message.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.job-flash-message .flash-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    line-height: 1;
}

.job-flash-message .flash-close:hover {
    opacity: 1;
}

/* ==========================================
   NEWSLETTER FOOTER - POPUP THÔNG BÁO
   ========================================== */
.newsletter-flash-message {
    padding: 12px 18px;
    margin-top: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    position: relative;
    animation: slideDown 0.3s ease-out;
    display: block;
}

.newsletter-flash-message i {
    margin-right: 8px;
}

.newsletter-flash-message.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-flash-message.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-flash-message .flash-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.newsletter-flash-message .flash-close:hover {
    opacity: 1;
}
@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .flash-message {
        padding: 10px 15px;
        font-size: 13px;
        margin: 8px 0;
    }
    
    .question-success-popup {
        padding: 12px 16px;
        font-size: 13px;
        margin-top: 12px;
    }
}