/* Legal Research Assistant - Custom overrides on Pico CSS */

/* Compliance tier badges */
.tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.tier-1 { background: #d4edda; color: #155724; }
.tier-2 { background: #fff3cd; color: #856404; }
.tier-3 { background: #f8d7da; color: #721c24; }

/* Roadmap stage cards */
.stage {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--pico-muted-border-color);
    border-radius: 0 4px 4px 0;
}
.stage.current {
    border-left-color: #007bff;
    background: var(--pico-card-background-color);
}
.stage.future { opacity: 0.5; }
.stage h4 { margin-bottom: 0.25rem; }
.stage .stage-meta { font-size: 0.85rem; color: var(--pico-muted-color); }

/* Intake wizard step indicator */
.steps {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.steps li {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-bottom: 3px solid var(--pico-muted-border-color);
    color: var(--pico-muted-color);
}
.steps li.active {
    border-bottom-color: var(--pico-primary);
    font-weight: 600;
    color: var(--pico-color);
}

/* Draft watermark notice */
.draft-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* Error state */
.error { border-color: #dc3545; }

/* Nav active link */
nav a[aria-current="page"] { font-weight: 700; }

/* Assessment content spacing */
#assessment-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
#assessment-content p { margin-bottom: 0.5rem; }
#assessment-content ul { margin-bottom: 1rem; }

/* Interactive checklist items */
.checklist-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    background: var(--pico-card-background-color);
}
.checklist-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
}
.checklist-item input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.note-input {
    margin-left: 1.75rem;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0;
}
.note-input::placeholder { font-style: italic; }

/* Material facts and relief rows */
.fact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.fact-row span {
    flex-shrink: 0;
    padding-top: 0.5rem;
    font-weight: 600;
    min-width: 1.5rem;
}
.fact-row textarea, .fact-row input[type="text"] {
    flex: 1;
    margin-bottom: 0;
}
.fact-row button {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Chat widget */
.chat-widget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}
.chat-toggle {
    display: block;
    margin-left: auto;
    margin-bottom: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.chat-panel {
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 500px;
    max-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
    background: var(--pico-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    margin-bottom: 0.5rem;
}
.chat-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}
.chat-empty {
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    font-style: italic;
    padding: 1rem 0;
}
.chat-msg {
    margin-bottom: 0.75rem;
}
.chat-msg-content {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
.chat-msg-user .chat-msg-content {
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    margin-left: 2rem;
    border-bottom-right-radius: 2px;
}
.chat-msg-assistant .chat-msg-content {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    margin-right: 2rem;
    border-bottom-left-radius: 2px;
}
.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--pico-muted-border-color);
}
.chat-input input {
    flex: 1;
    margin-bottom: 0;
    font-size: 0.9rem;
}
.chat-input button {
    flex-shrink: 0;
    width: auto;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}
