@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Inter:wght@400;700;800&display=swap');

:root {
    --bg-main: #f0f4f8;
    --navy-header: #0d2c5c;
    --navy-dark: #091e3e;
    --text-dark: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --waiting: #6c757d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Layout & Headers - Premium Default UI */
.top-section-container {
    background: var(--navy-header);
    border-bottom: 3px solid #38bdf8;
}

.header-row-1 {
    padding: 0 0 0 40px;
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: var(--navy-header);
}

.header-left {
    display: flex;
    align-items: center;
}

.company-name {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-row-2 {
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 55px;
    position: relative;
}

.date-bar {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.btn-today-nav {
    background: #38bdf8;
    border: none;
    color: #000;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    margin-left: 10px;
}

.btn-today-nav:hover {
    background: #7dd3fc;
}

/* Clock & Weather in Row 1 - Template System */
.header-right {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 0 40px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.header-row-1 .clock {
    font-weight: 900;
    font-size: 3.5rem !important;
    line-height: 1;
    color: #fff;
}

.header-row-1 .weather-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.header-row-1 .weather-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-row-1 .weather-icon i {
    font-size: 2.4rem;
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.header-row-1 .weather-temp-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-row-1 .weather-temp {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.header-row-1 .weather-range {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
    color: #fff;
}

/* Weather Info Extra in Row 2 */
.weather-info-extra {
    display: flex;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    margin-left: auto;
    /* Push to the far right */
}

.weather-desc {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    min-width: fit-content;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hourly Forecast */
.hourly-forecast {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.hourly-forecast::-webkit-scrollbar {
    display: none;
}

.hourly-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    white-space: nowrap;
}

.hourly-item .h-time {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.9;
}

.hourly-item .h-icon {
    font-size: 0.9rem;
    color: #38bdf8;
}

.hourly-item .h-temp {
    font-size: 1rem;
    font-weight: 900;
}

/* Specific Styles for Clock Templates */
.info-style-classic {
    background: #e11d48 !important;
    /* Bold Red/Crimson */
}

.info-style-classic .clock {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.info-style-modern {
    background: #475569 !important;
    /* Muted Slate Blue/Grey */
}

.info-style-modern .clock {
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
    font-weight: 800;
}

.info-style-neon {
    background: #000 !important;
    border-left: 2px solid #0ff;
}

.info-style-neon .clock {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #0ff, 0 0 20px #0ff;
}

.info-style-neon .weather-temp {
    color: #0ff;
}

.info-style-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.info-style-glass .clock {
    font-weight: 700;
    text-shadow: none;
    color: #fff;
}

/* Table */
.table-container {
    flex: 1;
    overflow: hidden;
    background: #fff;
}

.table-wrapper {
    height: 100%;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #0d2c5c;
    color: #fff;
    font-size: 0.9em;
    font-weight: 700;
    padding: 15px;
    text-transform: uppercase;
    border: 1px solid #acb8ca;
    text-align: center;
}

td {
    padding: 12px 15px;
    font-size: 1.2em;
    font-weight: 600;
    border: 1px solid #acb8ca;
    color: #000;
    text-align: center;
}

tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.stt-col {
    width: 60px;
}

.time-col {
    width: 150px;
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 900;
    text-transform: uppercase;
}

.status-completed {
    background: var(--success);
    color: #fff;
}

.status-doing {
    background: var(--warning);
    color: #000;
}

.status-waiting {
    background: #acb8ca;
    color: #000;
}

.status-overdue {
    background: var(--danger);
    color: #fff;
    animation: blink-default 1.5s infinite;
}

@keyframes blink-default {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Footer & Stats */
.footer {
    background: var(--navy-header);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid #38bdf8;
}

.stats-group {
    display: flex;
    gap: 15px;
    flex: 1;
}

.stat-card {
    flex: 0 1 auto;
    min-width: 140px;
    height: 50px;
    padding: 0 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
}

.stat-card.completed {
    background: #109d43;
}

.stat-card.doing {
    background: #009cf7;
}

.stat-card.waiting {
    background: #6c7c94;
}

.stat-card.overdue {
    background: #de1717;
}

.stat-card .val {
    font-size: 1.6rem;
    font-weight: 900;
    margin-left: auto;
}

.font-controls {
    display: flex;
    gap: 10px;
}

.btn-font {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-font:hover {
    background: rgba(255, 255, 255, 0.2);
}

.version-tag {
    display: none;
}