/* Reusable theme-aware components. */

.theme-surface,
.theme-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.theme-card {
    padding: 1rem;
}

.theme-card-title {
    margin: 0;
    color: var(--text-main);
    font-weight: 800;
}

.theme-muted {
    color: var(--text-secondary);
}

.theme-input,
.theme-select,
.theme-textarea {
    width: 100%;
    min-height: 38px;
    padding: .5rem .7rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--input-text);
}

.theme-input::placeholder,
.theme-textarea::placeholder {
    color: var(--input-placeholder);
}

.theme-input:focus,
.theme-select:focus,
.theme-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 .18rem var(--focus-ring);
    outline: 0;
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 36px;
    padding: .5rem .85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

.theme-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
    text-decoration: none;
}

.theme-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-inverse);
}

.theme-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-inverse);
}

.theme-table {
    width: 100%;
    background: var(--table-bg);
    color: var(--text-main);
}

.theme-table th {
    background: var(--table-head-bg);
    color: var(--text-secondary);
}

.theme-table td,
.theme-table th {
    border-color: var(--border-color);
}

.theme-modal {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: var(--shadow-strong);
}

.theme-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-strong);
}

