/* ====== TRAINING QUIZ MANAGER FRONTEND STYLES ====== */

/* Global container */
#tqm-quiz-root,
.tqm-form-container,
.tqm-dashboard {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

h2, h3 {
    text-align: center;
    color: #333;
    font-weight: 600;
}

/* ====== FORMS ====== */
.tqm-form-container form,
#tqm-user-form,
form[action*="wp-login.php"],
form[action*="wp-login"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tqm-form-container input,
#tqm-user-form input,
form[action*="wp-login.php"] input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.tqm-form-container input:focus,
#tqm-user-form input:focus,
form[action*="wp-login.php"] input:focus {
    outline: none;
    border-color: #0073aa;
}

.tqm-form-container button,
#tqm-user-form button,
.tqm-btn,
input[type="submit"].button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.tqm-form-container button:hover,
#tqm-user-form button:hover,
.tqm-btn:hover,
input[type="submit"].button:hover {
    background: #005d8f;
}

/* ====== QUIZ UI ====== */
#tqm-quiz-area {
    margin-top: 20px;
}

.tqm-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tqm-option:hover {
    background: #000000;
    border-color: #0073aa;
}

.tqm-option.correct {
    background: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff;
}

.tqm-option.incorrect {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: #fff;
}

#tqm-feedback {
    font-weight: 600;
    margin-top: 10px;
}

#tqm-next,
#tqm-submit {
    display: inline-block;
    padding: 10px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 15px;
}

#tqm-next:hover, 
#tqm-submit:hover {
    background: #005d8f;
}

/* ====== RESULTS ====== */
#tqm-result {
    text-align: center;
}

#tqm-result h3 {
    color: #0073aa;
    font-size: 24px;
}

#tqm-result a {
    display: inline-block;
    margin-top: 15px;
    background: #28a745;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

#tqm-result a:hover {
    background: #218838;
}

/* ====== DASHBOARD ====== */
.tqm-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.tqm-dashboard-table th {
    background: #0073aa;
    color: #fff;
    padding: 10px;
    text-align: left;
}

.tqm-dashboard-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.tqm-dashboard-table tr:nth-child(even) {
    background: #f9f9f9;
}

.tqm-dashboard-table a {
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.tqm-dashboard-table a:hover {
    background: #1f7a35;
}

/* ====== MISC ====== */
#tqm-user-details p {
    text-align: center;
}

.tqm-center {
    text-align: center;
}

@media (max-width: 600px) {
    #tqm-quiz-root,
    .tqm-form-container,
    .tqm-dashboard {
        padding: 20px;
    }
}
