/* assets/css/task-styles.css */

/* Modal Nhiệm Vụ */
.wpqib-hub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wpqib-hub-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.wpqib-hub-content {
    position: relative;
    background: #fff;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 15px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: wqFadeIn 0.3s ease;
}

@keyframes wqFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wpqib-hub-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    z-index: 11;
}

.wpqib-hub-body {
    padding: 30px;
}

.wpqib-hub-header-text {
    display: block;
    text-align: center;
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Khu vực nhập mã */
.wpqib-hub-verify-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.wpqib-hub-verify-box input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.wpqib-hub-verify-box input:focus {
    border-color: #007bff;
    outline: none;
}

.wpqib-hub-btn-primary {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.wpqib-hub-btn-primary:hover {
    background: #0056b3;
}

.wpqib-hub-error-msg {
    color: #d63031;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* Các bước hướng dẫn */
.wpqib-hub-steps p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.wpqib-hub-keyword-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.wpqib-hub-keyword-wrap input {
    flex: 1;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px dashed #e74c3c;
    color: #e74c3c;
    font-weight: 700;
    border-radius: 5px;
}

.wpqib-hub-btn-copy {
    background: #34495e;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
}

.wpqib-hub-btn-copy:hover {
    background: #2c3e50;
}

.wpqib-hub-steps img {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* Ngăn cuộn body khi mở modal */
body.modal-open {
    overflow: hidden;
}