/* E-ink layout for SVERIO PaperBoard 9.7" (ED097TC2)
   Native panel resolution: 1200x825. Portrait rotation: 825x1200.
   Monochrome design — only pure black and white, no grayscale gradients. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: #c0c0c0;
    font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
    /* E-ink optimized: zachovat anti-aliasing pro hladke krivky,
       ale font-weight bezne textu navyseny — 1px stems by jinak na displeji zmizely. */
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    color: black;
}

body {
    min-height: 100vh;
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

/* The panel itself — exactly 825 x 1200, the real e-ink resolution. */
.panel {
    width: 825px;
    height: 1200px;
    background: white;
    color: black;
    padding: 44px 50px 36px;
    display: flex;
    flex-direction: column;
    border: 1px solid #888;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* HEAD =================== */
.head {
    border-bottom: 4px solid black;
    padding-bottom: 22px;
    margin-bottom: 28px;
}

.room {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

.datetime {
    font-size: 30px;
    font-weight: 700;
    margin-top: 14px;
}

/* STATUS =================== */
.status {
    text-align: center;
    padding: 44px 24px;
    margin-bottom: 30px;
    border: 5px solid black;
}

.is-occupied .status {
    background: black;
    color: white;
}

.status-label {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.status-sub {
    font-size: 32px;
    font-weight: 800;
    margin-top: 20px;
}

/* SCHEDULE =================== */
.schedule {
    flex: 1;
    overflow: hidden;
}

.schedule-title {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    color: black;
}

.day-group {
    margin-bottom: 16px;
}

.day-header {
    font-size: 26px;
    font-weight: 800;
    padding-bottom: 4px;
    border-bottom: 3px solid black;
    margin-bottom: 8px;
}

.event {
    display: flex;
    gap: 22px;
    padding: 8px 0;
    border-bottom: 1px dashed #888;
}

.day-group .event:last-child {
    border-bottom: none;
}

.event-time {
    font-size: 26px;
    font-weight: 900;
    min-width: 200px;
    font-variant-numeric: tabular-nums;
    padding-top: 2px;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-organizer {
    font-size: 20px;
    font-weight: 700;
    margin-top: 3px;
}

/* FOOT =================== */
.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid black;
    padding-top: 16px;
    margin-top: 10px;
}

.logo {
    /* Crop the whitespace baked into the source PNG by scaling oversized
       and using background-position to show just the text band. */
    width: 180px;
    height: 40px;
    background-image: url("/static/LOGO_FYI_Prague_oneliner_black.png");
    background-repeat: no-repeat;
    background-size: 220px auto;
    background-position: center;
}

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

.battery-icon {
    width: 48px;
    height: 22px;
}

.battery-pct {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}
