/* CAPTCHA Modal Styles */
.captcha-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999 !important;
    justify-content: center;
    align-items: center;
}

    .captcha-modal-overlay.show {
        display: flex !important;
    }

.captcha-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.captcha-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .captcha-modal-header h5 {
        margin: 0;
        font-size: 18px;
    }

.captcha-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.captcha-modal-body {
    padding: 20px;
}

.captcha-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

#commentCaptchaInput.error {
    border-color: #dc3545;
}

/* Skeleton Loading */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-image {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

    .skeleton-text.long {
        width: 100%;
    }

    .skeleton-text.medium {
        width: 80%;
    }

    .skeleton-text.short {
        width: 60%;
    }


/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-modal {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
}

    .login-modal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .login-modal button {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
#giaoluuCaptchaModal {
    background-color: rgba(15, 23, 42, 0.55); 
    z-index: 1055 !important; /* Cao hơn modal cha (1050), thấp hơn modal CAPTCHA (1060) */
}

/* Đảm bảo modal CAPTCHA ở trên cùng */
#giaoluuCaptchaModal {
    z-index: 1060 !important;
}
