/* 
 * ReconcileOS Bauhaus Design System
 * Shared CSS for consistent styling across all pages
 */

/* CSS Variables - Bauhaus Color Palette */
:root {
    --bauhaus-blue: #2563EB;
    --bauhaus-red: #DC2626;
    --bauhaus-yellow: #EAB308;
    --bauhaus-charcoal: #18181B;
    --bauhaus-cream: #F7F7F5;
}

/* Base Styles */
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bauhaus-cream);
    /* Very subtle grid background: 60px × 60px at 2% opacity */
    background-image: 
        linear-gradient(rgba(24, 24, 27, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 24, 27, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    color: var(--bauhaus-charcoal);
}

/* Typography */
h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--bauhaus-charcoal);
}

h2 {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--bauhaus-charcoal);
    margin-bottom: 1.5rem;
}

label {
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
    color: hsl(0, 0%, 30%);
}

/* Monospace for IDs, numbers, timestamps */
.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Settlement summary value text is slightly smaller for long numbers */
.settlement-summary-value {
    font-size: 0.95rem !important;
    line-height: 1.25rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Container */
.container-bauhaus {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .container-bauhaus {
        padding: 32px 24px;
    }
}

@media (min-width: 1024px) {
    .container-bauhaus {
        padding: 32px;
    }
}

/* Cards - tighter padding for compact UI */
.card-bauhaus {
    background-color: #FFFFFF;
    border: 1px solid hsl(0, 0%, 85%);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

/* Status card with colored left border */
.status-card {
    background-color: #FFFFFF;
    border-left: 4px solid var(--bauhaus-blue);
    border-top: 1px solid hsl(0, 0%, 85%);
    border-right: 1px solid hsl(0, 0%, 85%);
    border-bottom: 1px solid hsl(0, 0%, 85%);
    padding: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--bauhaus-charcoal);
    color: var(--bauhaus-cream);
    border: 1px solid var(--bauhaus-charcoal);
    font-weight: 600;
    transition: all 200ms ease-out;
    height: 48px;
    padding: 0 1.5rem;
}

.btn-primary:hover {
    background-color: var(--bauhaus-blue);
    border-color: var(--bauhaus-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bauhaus-charcoal);
    border: 1px solid hsl(0, 0%, 70%);
    font-weight: 600;
    transition: all 200ms ease-out;
    padding: 0.5rem 1rem;
}

.btn-secondary:hover {
    background-color: hsl(0, 0%, 95%);
    border-color: var(--bauhaus-charcoal);
}

.btn-danger {
    background-color: var(--bauhaus-red);
    color: #FFFFFF;
    border: 1px solid var(--bauhaus-red);
    font-weight: 600;
    transition: all 200ms ease-out;
    padding: 0.75rem 1.5rem;
}

.btn-danger:hover {
    background-color: #B91C1C;
    border-color: #B91C1C;
}

.btn-warning {
    background-color: transparent;
    color: #92400E;
    border: 1px solid #FCD34D;
    font-weight: 600;
    transition: all 200ms ease-out;
    padding: 0.5rem 1rem;
}

.btn-warning:hover {
    background-color: #FEF3C7;
    border-color: #F59E0B;
}

/* Action buttons in tables */
.btn-action {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 200ms ease-out;
    border: 1px solid;
}

.btn-edit {
    background-color: transparent;
    color: var(--bauhaus-blue);
    border-color: var(--bauhaus-blue);
}

.btn-edit:hover {
    background-color: var(--bauhaus-blue);
    color: #FFFFFF;
}

.btn-delete {
    background-color: transparent;
    color: var(--bauhaus-red);
    border-color: var(--bauhaus-red);
}

.btn-delete:hover {
    background-color: var(--bauhaus-red);
    color: #FFFFFF;
}

/* Disabled state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
    background-color: inherit;
}

/* Forms & Inputs */
.input-bauhaus {
    border: 1px solid hsl(0, 0%, 70%);
    background-color: #FFFFFF;
    height: 40px;
    padding: 0 1rem;
    transition: all 200ms ease-out;
    font-family: 'Space Grotesk', sans-serif;
}

.input-bauhaus:focus {
    outline: none;
    border-color: var(--bauhaus-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.input-bauhaus {
    height: 40px;
}

/* Checkbox styles */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid hsl(0, 0%, 70%);
    accent-color: var(--bauhaus-blue);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: hsl(0, 0%, 94%);
}

th {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem;
    text-align: left;
    border: 1px solid hsl(0, 0%, 85%);
    color: hsl(0, 0%, 30%);
}

td {
    padding: 0.5rem;
    border: 1px solid hsl(0, 0%, 85%);
    font-size: 0.875rem;
}

tbody tr:nth-child(even) {
    background-color: hsl(0, 0%, 98%);
}

tbody tr:hover {
    background-color: hsl(221, 83%, 96%);
}

/* Monospace for IDs, amounts, timestamps in tables */
td.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Alerts & Notifications */
.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
    padding: 1rem;
    font-weight: 500;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
    padding: 1rem;
    font-weight: 500;
}

.alert-info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
    padding: 1rem;
    font-weight: 500;
}

/* Error message styling (for login page) */
.error-bauhaus {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Links */
a {
    color: var(--bauhaus-blue);
    text-decoration: underline;
    transition: color 200ms ease-out;
}

a:hover {
    color: var(--bauhaus-charcoal);
}

/* Section spacing - tighter for compact UI */
.section-spacing {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .section-spacing {
        margin-top: 3rem;
    }
}

