/* Tender Monitor — shortcode styles */

.tm-wrap {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.tm-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */

.tm-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tm-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.tm-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tm-btn-save {
    padding: 10px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.tm-btn-save:hover {
    background: #1d4ed8;
}

.tm-btn-save:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* ── Messages ─────────────────────────────────────────────────────────────── */

.tm-message {
    min-height: 20px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.tm-message--success {
    color: #15803d;
}

.tm-message--error {
    color: #b91c1c;
}

/* ── Keyword list ─────────────────────────────────────────────────────────── */

.tm-keyword-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tm-keyword-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s;
}

.tm-keyword-item:hover {
    border-color: #d1d5db;
}

.tm-keyword-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

.tm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.tm-delete {
    padding: 5px 12px;
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.tm-delete:hover {
    color: #b91c1c;
    border-color: #fca5a5;
}

.tm-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tm-empty {
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 10px 0;
}

.tm-notice {
    color: #6b7280;
    font-size: 0.95rem;
}
