﻿/* Base reset and typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

/* Generic links */
.linkish {
    color: var(--brand);
    text-decoration: none;
}

    .linkish:hover {
        text-decoration: underline;
    }

/* Page header */
.page-heading h1 {
    margin: 0 0 6px 0;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
    letter-spacing: -.2px;
}

.page-heading .crumbs {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 14px;
}

    .page-heading .crumbs a {
        text-decoration: none;
        color: var(--brand);
    }

/* Centered shell; expands nicely on desktop */
.auth-shell {
    max-width: 980px;
    margin: 44px auto;
}

/* Single column on mobile; 2 columns on larger screens */
.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .form-grid {
        gap: 18px 20px;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* Fields and inputs */
.field {
    display: grid;
    gap: 6px;
}

.input-lg {
    padding: 14px 14px;
    border-radius: 14px;
    font-size: 16px;
}

/* Grid helpers */
.col-span-2 {
    grid-column: 1 / -1;
}

/* Actions: stack on mobile, right-align on desktop */
.actions {
    display: flex;
    gap: 12px;
}

@media (max-width: 640px) {
    .actions {
        flex-direction: column;
    }

        .actions .btn,
        .actions .btn-ghost {
            width: 100%;
            justify-content: center;
        }
}

@media (min-width: 641px) {
    .actions {
        justify-content: flex-end;
    }
}

/* Footer */
.auth-footer {
    margin-top: 14px;
    text-align: center;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .toolbar .left {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .toolbar .right {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .toolbar .filters {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

/* Compact ghost buttons for row actions */
.row-actions {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.btn-ghost.danger {
    border-color: #fecaca;
}

/* Make search input a bit wider on desktop */
@media (min-width: 900px) {
    .toolbar .right .input {
        min-width: 280px;
    }
}

.section-head h3 {
    margin: 0;
}

/* Week grid: 1 column on phones, grows on desktop */
.week-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.col-span-3 {
    grid-column: 1 / -1;
}

/* Day card header */
.day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.day-name {
    font-weight: 700;
}

.day-date {
    margin-top: 2px;
}

/* Inputs comfy */
.input-lg {
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 16px;
}

/* Small circular blue info icon (“i”) */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    background-color: var(--brand);
    color: #fff;
    margin-left: 6px;
    cursor: help;
    flex-shrink: 0;
}


