/* Kindle Dashboard Styles
   Optimized for e-ink display (grayscale, high contrast) */

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

body {
    font-family: serif;
    background: #fff;
    color: #000;
    padding: 10px;
}

#dashboard {
    max-width: 600px;
    margin: 0 auto;
}

header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#clock {
    font-size: 48px;
    font-weight: bold;
}

#date {
    font-size: 18px;
}

main {
    display: block;
}

section {
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#current-weather {
    display: table;
    table-layout: fixed;
    width: 100%;
    margin-bottom: 10px;
}

#current-weather > div {
    display: table-cell;
    vertical-align: middle;
}

#weather-icon {
    width: 48px;
    text-align: left;
}

#temperature {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
}

#conditions {
    font-size: 18px;
    text-align: right;
}

.weather-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
}

.weather-icon svg {
    width: 100%;
    height: 100%;
}

#forecast {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.forecast-item {
    display: table-cell;
    text-align: center;
    border-left: 1px solid #ccc;
    padding: 5px;
    vertical-align: top;
}

.forecast-item:first-child {
    border-left: none;
}

.forecast-day {
    font-weight: bold;
}

.forecast-temp {
    font-size: 14px;
}

.forecast-icon {
    width: 24px;
    height: 24px;
    margin: 4px auto;
}

.forecast-icon svg {
    width: 100%;
    height: 100%;
}

#disturbances {
    font-size: 16px;
}

.disturbance {
    display: table;
    table-layout: fixed;
    width: 100%;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.disturbance > span {
    display: table-cell;
    vertical-align: middle;
}

.disturbance-mode {
    font-weight: bold;
    width: 30px;
    text-align: center;
}

.disturbance-header {
    width: auto;
    padding-left: 10px;
}

.disturbance-clear {
    padding: 10px 0;
    text-align: center;
    color: #666;
    font-style: italic;
}

.disturbance-high {
    border-left: 3px solid #000;
    padding-left: 5px;
}

.disturbance-medium {
    border-left: 2px solid #666;
    padding-left: 5px;
}

footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #666;
    text-align: center;
}
