/* Topic Points Allocator – Form Styles */

.tpa-form {
    max-width: 400px;
    margin: 1.5em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tpa-form p {
    margin: 0.8em 0;
}

.tpa-topic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 0.8em;
    margin-bottom: 0.4em;
    background: #65a603;
    border: 1px solid #324d0a;
    border-radius: 6px;
}

.tpa-topic-row label {
    font-weight: 600;
    color: #333;
    min-width: 200px;
}

.tpa-input {
    width: 70px;
    padding: 0.4em 0.5em;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.tpa-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

#tpa-remaining {
    font-weight: 700;
    color: #007cba;
}

#tpa-save-btn {
    margin-top: 0.8em;
    background: #65a603;
    color: #fff;
    border: none;
    padding: 0.6em 1.4em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

#tpa-save-btn:hover {
    background: #005a87;
}

#tpa-message {
    display: inline-block;
    margin-left: 1em;
    font-style: italic;
    color: #555;
}