/* =============================================
   Nút Tải Manager - Frontend Styles
   ============================================= */

/* --- NÚT TẢI XUỐNG --- */
.ntm-button-wrap { text-align: center; margin: 20px 0; }

.ntm-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #b71c1c;
}
.ntm-download-btn:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
    transform: translateY(-2px);
    color: #fff !important;
}
.ntm-icon { margin-right: 8px; font-size: 20px; }

/* --- MODAL --- */
.ntm-modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.ntm-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 700px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ntmFadeIn 0.3s ease;
    margin-top: 50px;
}
@keyframes ntmFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ntm-modal-title {
    color: #e53935; text-align: center;
    font-size: 22px; font-weight: 800;
    margin: 0 0 10px; line-height: 1.4;
}
.ntm-modal-note {
    text-align: center; color: #666;
    font-size: 13px; margin-bottom: 20px;
}

/* --- VERIFY --- */
.ntm-verify-area {
    display: flex; gap: 10px;
    justify-content: center; margin-bottom: 15px;
    flex-wrap: wrap;
}
.ntm-code-input {
    flex: 1; min-width: 200px; max-width: 350px;
    padding: 12px 16px;
    border: 2px solid #ddd; border-radius: 25px;
    font-size: 15px; outline: none;
}
.ntm-code-input:focus { border-color: #2196F3; }
.ntm-verify-btn {
    background: #1a1a1a; color: #fff; border: none;
    padding: 12px 28px; border-radius: 25px;
    font-size: 15px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: all 0.3s;
}
.ntm-verify-btn:hover { background: #333; }
.ntm-verify-btn:disabled { opacity: 0.6; cursor: wait; }
.ntm-error-msg {
    text-align: center; color: #e53935;
    font-weight: 600; min-height: 20px;
    margin-bottom: 10px; font-size: 14px;
}

/* --- STEPS (tái sử dụng class từ quiz-locker) --- */
.ntm-steps { text-align: left; line-height: 1.6; }
.ntm-steps .step-items { display: flex; align-items: center; padding-bottom: 4px; }
.ntm-steps .keyword { background: #333; color: white; padding: 4px 10px; border-radius: 6px; font-family: monospace; }
.ntm-steps .highlight { color: red; font-weight: bold; }
.ntm-steps .btn-copy {
    margin-left: 8px; background: #007bff; color: white;
    border: none; border-radius: 8px; font-size: 0.9rem;
    cursor: pointer; padding: 4px 12px;
}
.ntm-steps .btn-copy:hover { background: #0056b3; }
.ntm-steps .image img { width: 100%; border-radius: 8px; border: 2px solid #ddd; margin: 10px 0; }
.ntm-steps p { margin-bottom: 5px; }
.ntm-verify-bottom { margin-top: 20px; }

/* --- KẾT QUẢ --- */
.ntm-result-wrap {
    text-align: center; padding: 40px 20px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 16px; margin: 20px auto; max-width: 700px;
}
.ntm-result-title {
    font-size: 28px; font-weight: 800; font-style: italic;
    color: #1b5e20; margin: 0 0 25px;
}
.ntm-result-btn {
    display: inline-block; background: #1a237e;
    color: #fff !important; font-size: 20px; font-weight: 800;
    padding: 14px 50px; border-radius: 30px;
    text-decoration: none !important; transition: all 0.3s;
}
.ntm-result-btn:hover {
    background: #283593; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.4);
    color: #fff !important;
}
.ntm-result-arrow { font-size: 36px; color: #1a237e; margin: 15px 0; font-weight: bold; }
.ntm-result-link {
    background: #fff; border: 2px solid #ccc;
    border-radius: 10px; padding: 15px 20px;
    display: inline-block; max-width: 100%; word-break: break-all;
}
.ntm-result-link a { color: #333; text-decoration: none; font-size: 14px; }
.ntm-result-link a:hover { color: #1a237e; text-decoration: underline; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .ntm-modal-content { padding: 20px 15px; }
    .ntm-modal-title { font-size: 18px; }
    .ntm-download-btn { font-size: 15px; padding: 14px 24px; }
    .ntm-verify-area { flex-direction: column; align-items: center; }
    .ntm-code-input { max-width: 100%; }
}
