/* ==========================================================
   COLOURS
========================================================== */

:root {
    --bg: #111827;
    --surface: #1f2937;
    --surface-light: #374151;

    --primary: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --text: #f9fafb;
    --muted: #9ca3af;
}

/* ==========================================================
   RESET
========================================================== */

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

/* ==========================================================
   PAGE
========================================================== */

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    padding: 30px;
}

.container {
    max-width: 1800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================
   HEADER
========================================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--surface);

    padding: 25px 35px;

    border-radius: 18px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

#date {
    margin-top: 8px;
    font-size: 1.2rem;
    color: var(--muted);
}

/* ==========================================================
   WEATHER
========================================================== */

.weather {
    display: flex;
    align-items: center;
    gap: 20px;

    min-width: 220px;
}

#weatherIcon {
    font-size: 3rem;
}

#weatherTemp {
    font-size: 1.8rem;
    font-weight: bold;
}

#weatherCondition {
    color: var(--muted);
}

/* ==========================================================
   CLOCK
========================================================== */

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.clock {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
}

.sync-time {
    margin-top: 6px;
    font-size: .9rem;
    color: var(--muted);
}

/* ==========================================================
   MAIN LAYOUT
========================================================== */

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================
   CARDS
========================================================== */

.card {
    background: var(--surface);

    border-radius: 18px;

    padding: 28px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.card h2 {
    margin-bottom: 20px;

    padding-bottom: 10px;

    font-size: 1.8rem;

    border-bottom: 2px solid var(--primary);
}

/* ==========================================================
   JOBS
========================================================== */

.job-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.job-card {
    width: 100%;

    background: var(--surface-light);

    border-left: 10px solid #6b7280;

    border-radius: 14px;

    padding: 18px 20px;

    transition: all .2s ease;
}

.job-card:hover {
    transform: translateY(-3px);
}

.job-card.complete {
    border-left-color: var(--success);
}

.job-card.current {
    border-left-color: var(--warning);
}

.job-card.upcoming {
    border-left-color: #6b7280;
}

.job-time {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.job-customer {
    margin-top: 8px;

    font-size: 1.6rem;

    font-weight: 700;

    text-transform: uppercase;
}

.job-work {
    margin-top: 10px;

    color: var(--muted);

    font-size: 1.1rem;

    line-height: 1.5;
}

/* ==========================================================
   REMINDERS
========================================================== */

.reminder-card {
    width: 100%;

    background: var(--surface-light);

    border-left: 10px solid var(--danger);

    border-radius: 12px;

    padding: 18px;

    margin-bottom: 15px;

    font-size: 1.2rem;

    transition: all .2s ease;
}

.reminder-card:hover {
    transform: translateY(-2px);
}

.reminder-card.medium {
    border-left-color: var(--warning);
}

.reminder-card.low {
    border-left-color: var(--success);
}

/* ==========================================================
   NOTES
========================================================== */

#notes {
    list-style: none;
}

.note {
    background: var(--surface-light);

    border-left: 8px solid #6b7280;

    border-radius: 10px;

    padding: 14px 18px;

    margin-bottom: 12px;

    font-size: 1.15rem;

    line-height: 1.5;
}

.note.info {
    border-left-color: var(--info);
}

.note.success {
    border-left-color: var(--success);
}

.note.warning {
    border-left-color: var(--warning);
}

.note.critical {
    border-left-color: var(--danger);
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--surface);

    border-radius: 18px;

    padding: 18px 28px;

    color: var(--muted);

    font-size: 1.1rem;
}

.online {
    color: var(--success);
    font-weight: bold;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 1000px) {

    body {
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-right {
        align-items: center;
    }

    main {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .clock {
        font-size: 2.5rem;
    }

}