/* static/style.css - Brutalist Minimalist Theme */
body {
    font-family: "Courier New", Courier, monospace;
    background-color: lightgray;
    color: #000000;
    margin: auto;
    padding: 0;
    max-width: 690px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    border: 3px solid #000000;
    padding: 1rem;
    background: lightgrey;
}

h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 900;
    margin-top: 0;
    color: #000000;
    background-color: yellow;
    display: inline-block;
    padding: 0.25rem;
}
.lemonyellow {background-color: #FAFA33;}
.red {background-color: red;}

hr {
    border: 0;
    border-top: 4px solid #000000;
    margin: 30px 0;
}

/* Section headers with an action button on the right */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    margin: 0;
}

/* Log-out button pinned to the top right of every logged-in page */
.logout-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Wrong-credentials message on the login page — inverted block so a
   failed attempt is impossible to miss */
.form-error {
    background: #000000;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #000000;
    padding: 8px 12px;
}

/* Tag cloud jump navigation — stark chips linking to page anchors */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 10px 0;
}

.tag {
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: #000000;
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    padding: 3px 10px;
    white-space: nowrap;
}

.tag:hover {
    background: #000000;
    color: #ffffff;
    box-shadow: 0px 0px 0px #000000;
}

/* Inverted variant marking the bookings tag apart from the day tags */
.tag-filled {
    background: #000000;
    color: #ffffff;
}

.tag-filled:hover {
    background: #ffffff;
    color: #000000;
}

/* Groups of buttons at the bottom of a card or section */
.day-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    margin-top: 12px;
}

/* A form that behaves like a single inline button (e.g. Delete) */
.inline-form {
    display: inline;
    margin: 0;
}

/* Smooth glide when jumping to anchors, and stop headers hiding
   the very top of the target section */
html {
    scroll-behavior: smooth;
}

.day-card,
.section-header {
    scroll-margin-top: 15px;
}

/* Hard-shadow Brutalist Day Cards */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 30px;
}

.day-card {
    border: 2px solid #000000;
    padding: 20px;
    width: 100%;
    background-color: #ffffff;
    /* Brutalist stark shadow offset */
    box-shadow: 3px 3px 0px #000000;
}

.day-card h3 {
    border-bottom: 3px solid #000000;
    padding-bottom: 5px;
}

.btn-small {
    padding: 2px 8px;
    font-size: 0.8em;
    white-space: nowrap;
}

.activity-list {
    padding-left: 20px;
}

.activity-list li {
    margin-bottom: 6px;
    overflow-wrap: break-word; /* long pasted URLs wrap instead of overflowing */
}



/* Stark Badges and Buttons */
.category-badge {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    border-bottom: 2px solid #000000;
}

.time-badge {
    font-weight: bold;
    text-decoration: underline;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
    padding: 6px 12px;
    text-transform: uppercase;
    border: 2px solid #000000;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Form controls matching the vibe */
input, select, button, textarea {
    font-family: inherit;
    border: 3px solid #000000;
    padding: 8px;
    background: #ffffff;
    color: #000000;
}

/* Visible keyboard focus, in keeping with the stark theme */
a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline: 3px solid #000000;
    outline-offset: 2px;
}

/* Stacked label + field rows inside modal forms */
.form-field {
    margin-bottom: 12px;
}

.form-field:last-of-type {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.form-field textarea {
    resize: vertical;      /* let the box grow for long days */
    line-height: 1.5;
}

/* Small helper line under modal forms */
.form-hint {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -6px 0 14px 0;
}

/* CSS Popup Modal - Simple Stark Layer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9); /* Stark semi-white mask */
    display: none;
    overflow-y: auto; /* Lets tall modals scroll on short screens */
    z-index: 1000;
}

.modal-box {
    /* Anchors the absolutely-positioned close button to this box,
       not the viewport */
    position: relative;
    background: #ffffff;
    border: 4px solid #000000;
    width: 90%;
    max-width: 450px;
    margin: 10% auto;
    padding: 30px;
    box-shadow: 10px 10px 0px #000000;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.modal-overlay:target {
    display: block;
}
