/* ============================================
   HATWIN — Component Styles (buttons, inputs, cards)
   ============================================ */

/* Primary Button */
.btn-primary {
    background-color: var(--navy);
    color: var(--paper);
    border: 1px solid var(--navy);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 150ms cubic-bezier(0.4,0,0.2,1);
}
.btn-primary:hover { background-color: var(--navy-2); border-color: var(--navy-2); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Secondary Button */
.btn-secondary {
    background-color: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 150ms cubic-bezier(0.4,0,0.2,1);
}
.btn-secondary:hover { background-color: var(--line-soft); }

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: background-color 150ms cubic-bezier(0.4,0,0.2,1);
}
.btn-ghost:hover { background-color: var(--line-soft); color: var(--ink); }

/* Card Base */
.card-base {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Input Base */
.input-base {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-color: var(--paper);
    color: var(--ink);
    transition: border-color 150ms cubic-bezier(0.4,0,0.2,1);
}
.input-base:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23,61,109,0.08);
}

/* Header Title */
.header-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.header-title-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-soft);
    color: var(--navy);
    border-radius: 8px;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.header-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .header-title-text { font-size: 0.875rem; }
    .header-title-icon { width: 28px; height: 28px; }
}