/* LawRag static/style.css satır 6059-6400 — birebir kopya */
/* =========================================================
   HUKUKİ ARAMA ÇUBUĞU & DANIŞMANLIK MASASI (MEVZUAT & EMSAL)
   ========================================================= */
.workspace-search-card {
    width: 100%;
    max-width: 780px;
    margin: 20px auto 0 auto;
    background: var(--bg-surface, #ffffff);
    border: 2px solid var(--border-color-strong, #cbd5e1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
    text-align: left;
    transition: all 0.2s ease;
}

[data-theme="light"] .workspace-search-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.workspace-search-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.ws-search-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: transparent;
    color: var(--text-tertiary, #64748b);
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ws-search-tab:hover {
    color: var(--text-primary, #0f172a);
}

.ws-search-tab.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.ws-search-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    padding: 2px 8px;
}

.ws-search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.ws-search-input-wrap {
    position: relative;
    flex: 1;
}

.ws-search-input {
    width: 100%;
    padding: 12px 36px 12px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--border-color-strong, #cbd5e1);
    outline: none;
    transition: border-color 0.2s ease;
}

.ws-search-input:focus {
    border-color: #16a34a;
}

.ws-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-tertiary, #94a3b8);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
}

.ws-clear-btn:hover {
    color: var(--text-primary, #0f172a);
}

.ws-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #15803d;
    padding: 0 22px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ws-submit-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.ws-quick-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.ws-quick-pill {
    background: var(--bg-tertiary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-secondary, #475569);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ws-quick-pill:hover {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border-color: #16a34a;
}

.ws-results-area {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.ws-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
}

.ws-results-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-status-verified {
    color: #16a34a;
    font-size: 0.74rem;
    font-weight: 700;
}

.ws-results-close-btn {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #94a3b8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.ws-results-close-btn:hover {
    color: #ef4444;
}

.ws-search-loader {
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary, #64748b);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ws-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(22, 163, 74, 0.2);
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: ws-spin 0.75s linear infinite;
}

@keyframes ws-spin {
    to { transform: rotate(360deg); }
}

.ws-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.ws-result-card {
    background: var(--bg-tertiary, #f8fafc);
    border: 1px solid var(--border-color-strong, #e2e8f0);
    padding: 12px 14px;
    transition: all 0.15s ease;
}

.ws-result-card:hover {
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ws-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.ws-badge-mevzuat {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ws-badge-emsal {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ws-score-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    padding: 2px 6px;
}

.ws-card-body {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-primary, #1e293b);
    margin-top: 4px;
}

.ws-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    flex-wrap: wrap;
}

.ws-action-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-card-btn {
    background: transparent;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
}

.ws-card-btn:hover {
    color: #16a34a;
}

.ws-send-assistant-btn {
    background: #16a34a;
    color: #ffffff;
    border: none;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ws-send-assistant-btn:hover {
    background: #15803d;
}
