
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dashboard Layout */
.dashboard-layout{
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.dashboard-main{
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f1f9ff;
    padding: 35px 0 45px;
}
.dashboard-container{
    width: 100%;
    max-width: 1450px;
    padding: 0 35px;
    margin: 0 auto;
}

/* Dashboard Heading */
.dashboard-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.dashboard-eyebrow,
.section-eyebrow,
.panel-label{
    color: #47749e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}
.welcome-text{
    color: #1e1e1b;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 5px;
}
.welcome-text span{
    color: #134989;
}
.heading-description{
    color: #667788;
    font-size: 15px;
    margin: 0;
}
.dashboard-date{
    display: flex;
    align-items: center;
    gap: 9px;
    color: #42617e;
    background-color: white;
    border: 1px solid #e1ebf3;
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13px;
    white-space: nowrap;
}
.dashboard-date i{
    color: #134989;
    font-size: 16px;
}

/* Preparedness Banner */
.preparedness-banner{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 260px;
    padding: 35px 45px;
    margin-bottom: 38px;
    border-radius: 17px;
    background: linear-gradient(110deg, #103d70 0%, #16558e 65%, #2878ae 100%);
    color: white;
    box-shadow: 0 9px 25px #13498920;
}
.banner-content{
    position: relative;
    z-index: 2;
    max-width: 610px;
}
.banner-label{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d5eaff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
}
.banner-content h2{
    font-size: 39px;
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 12px;
}
.banner-content p{
    max-width: 550px;
    color: #e0edfa;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.banner-btn{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 17px;
    border-radius: 7px;
    background-color: white;
    color: #134989;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}
.banner-btn:hover{
    background-color: #e7f3ff;
    color: #103d70;
    transform: translateY(-2px);
}
.banner-decoration{
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff12;
    font-size: 190px;
}

/* General Sections */
.dashboard-section{
    margin-bottom: 38px;
}
.section-heading{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 17px;
}
.section-heading h2{
    color: #1e1e1b;
    font-size: 25px;
    font-weight: 700;
    margin: 0;
}
.section-heading > p{
    max-width: 390px;
    color: #718091;
    font-size: 13px;
    text-align: right;
    margin: 0 0 3px;
}

/* Resource Cards */
.resource-card{
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 125px;
    padding: 19px 17px;
    background-color: white;
    border: 1px solid #e6edf4;
    border-radius: 12px;
    color: #1e1e1b;
    text-decoration: none;
    box-shadow: 0 4px 15px #172f4510;
    transition: 0.3s ease;
}
.resource-card:hover{
    transform: translateY(-5px);
    border-color: #b8d3eb;
    box-shadow: 0 9px 22px #13498917;
    color: #1e1e1b;
}
.resource-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 47px;
    height: 47px;
    border-radius: 11px;
    font-size: 22px;
}
.quiz-icon{
    background-color: #eaf3ff;
    color: #2864a1;
}
.map-icon{
    background-color: #e8f5f2;
    color: #368477;
}
.report-icon{
    background-color: #fff3e8;
    color: #b87837;
}
.resource-text{
    flex: 1;
    min-width: 0;
}
.resource-text h3{
    color: #23384d;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}
.resource-text p{
    color: #718091;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}
.resource-arrow{
    color: #7893ac;
    font-size: 18px;
    transition: 0.3s ease;
}
.resource-card:hover .resource-arrow{
    color: #134989;
    transform: translate(3px, -3px);
}

/* Shared Dashboard Panels */
.dashboard-panel{
    padding: 22px;
    background-color: white;
    border: 1px solid #e5edf4;
    border-radius: 13px;
    box-shadow: 0 4px 16px #172f450c;
}
.panel-heading{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 17px;
}
.panel-label{
    display: block;
    font-size: 10px;
    margin-bottom: 5px;
}
.panel-heading h3{
    color: #24394d;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
.panel-heading-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background-color: #edf5fc;
    color: #134989;
    font-size: 20px;
}
.panel-description{
    color: #7a8998;
    font-size: 13px;
    line-height: 1.5;
    margin: -5px 0 17px;
}

/* Weather */
.weather-card{
    display: flex;
    flex-direction: column;
}
.weather-main{
    padding: 5px 0 15px;
}
.weather-temperature{
    color: #173f69;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
}
.weather-condition{
    display: flex;
    align-items: center;
    gap: 9px;
    color: #66798b;
    font-size: 14px;
    margin-top: 7px;
}
.weather-condition i{
    color: #e6aa35;
    font-size: 21px;
}
.weather-note{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-top: auto;
    background-color: #f1f7fc;
    border-radius: 8px;
}
.weather-note i{
    color: #3975a9;
    font-size: 15px;
    margin-top: 2px;
}
.weather-note p{
    color: #64798d;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}
.source-link{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: #52789b;
    font-size: 11px;
    text-decoration: none;
    margin-top: 12px;
}
.source-link:hover{
    color: #134989;
    text-decoration: underline;
}

/* Preparedness Checklist */
.preparedness-card{
    display: flex;
    flex-direction: column;
}
.quest-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f5;
    margin: 0;
}
.quest-item:last-child{
    border-bottom: none;
    padding-bottom: 0;
}
.quest-item label{
    display: flex;
    align-items: center;
    gap: 11px;
    color: #42566a;
    font-size: 13px;
    cursor: pointer;
}
.quest-check-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #edf5fc;
    color: #28649c;
    font-size: 15px;
}
.quest-item input{
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    accent-color: #21639e;
    cursor: pointer;
}

/* Planning Section */
.planning-section{
    margin-bottom: 28px;
}
.planning-card,
.calendar-card{
    display: flex;
    flex-direction: column;
}
.todo-input-row{
    display: flex;
    gap: 9px;
    margin-bottom: 15px;
}
#to-do-input{
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d7e2ec;
    border-radius: 7px;
    outline: none;
    color: #34495e;
    font-family: inherit;
    font-size: 13px;
    transition: 0.2s ease;
}
#to-do-input:focus{
    border-color: #6596c1;
    box-shadow: 0 0 0 3px #13498912;
}
#add-to-do-btn{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background-color: #134989;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}
#add-to-do-btn:hover{
    background-color: #103b6d;
}
#to-do-list-container{
    list-style: none;
    padding: 0;
    margin: 0;
}
.to-do-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    margin-bottom: 8px;
    border: 1px solid #e6edf4;
    border-radius: 8px;
    color: #45596d;
    font-size: 13px;
}
.to-do-item span{
    min-width: 0;
    overflow-wrap: anywhere;
}
.to-do-item.completed span{
    color: #9aa5af;
    text-decoration: line-through;
}
.to-do-actions{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.to-do-actions input{
    width: 16px;
    height: 16px;
    accent-color: #21639e;
    cursor: pointer;
}
.to-do-actions button{
    border: none;
    background: none;
    color: #8a98a6;
    font-size: 14px;
    cursor: pointer;
}
.to-do-actions button:hover{
    color: #b34d4d;
}
.todo-empty-note{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px;
    margin-top: 5px;
    border-radius: 8px;
    background-color: #f4f8fb;
    color: #718294;
    font-size: 12px;
    line-height: 1.5;
}
.todo-empty-note i{
    color: #d29a36;
    font-size: 15px;
}

/* Calendar */
.calendar-box{
    width: 100%;
    border: 1px solid #e1e9f0;
    border-radius: 9px;
    overflow: hidden;
}
.calendar-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 13px;
    background-color: #134989;
    color: white;
}
.calendar-header h3{
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.calendar-header button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}
.calendar-header button:hover{
    background-color: #ffffff25;
}
.calendar-grid{
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    padding: 10px;
    text-align: center;
    transition: opacity 0.2s ease;
}
.calendar-grid.fade-out{
    opacity: 0;
    transform: translateY(5px);
}
.calendar-day,
.calendar-date{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: 12px;
}
.calendar-day{
    color: #7a8998;
    font-weight: 700;
}
.calendar-date{
    border-radius: 6px;
    color: #45596d;
}
.calendar-date.today{
    background-color: #134989;
    color: white;
    font-weight: 700;
}
.calendar-date.empty{
    pointer-events: none;
}
.calendar-date:not(.today):not(.empty):hover{
    background-color: #eaf3fb;
    cursor: pointer;
}

/* Footer Reminder */
.dashboard-footer-note{
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 23px;
    border: 1px solid #dce9f4;
    border-radius: 11px;
    background-color: #eaf4fc;
}
.dashboard-footer-note > i{
    color: #28649c;
    font-size: 27px;
}
.dashboard-footer-note h3{
    color: #244665;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.dashboard-footer-note p{
    color: #6d8194;
    font-size: 13px;
    margin: 0;
}

/* Tablet */
@media (max-width: 991.98px){
    .dashboard-container{
        max-width: 800px;
        padding: 0 25px;
    }
    .dashboard-heading{
        align-items: flex-start;
    }
    .welcome-text{
        font-size: 36px;
    }
    .banner-decoration{
        right: 3%;
        font-size: 150px;
    }
    .section-heading > p{
        max-width: 300px;
    }
}

/* Mobile */
@media (max-width: 575.98px){
    .dashboard-main{
        padding-top: 25px;
    }
    .dashboard-container{
        padding: 0 15px;
    }
    .dashboard-heading{
        flex-direction: column;
        gap: 13px;
        margin-bottom: 22px;
    }
    .welcome-text{
        font-size: 32px;
    }
    .heading-description{
        font-size: 13px;
    }
    .dashboard-date{
        padding: 9px 12px;
    }
    .preparedness-banner{
        min-height: 250px;
        padding: 27px 23px;
        margin-bottom: 30px;
    }
    .banner-content h2{
        font-size: 32px;
    }
    .banner-content p{
        font-size: 13px;
        max-width: 95%;
    }
    .banner-decoration{
        right: -25px;
        top: 20px;
        transform: none;
        font-size: 115px;
    }
    .section-heading{
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
    .section-heading h2{
        font-size: 22px;
    }
    .section-heading > p{
        text-align: left;
        font-size: 12px;
    }
    .dashboard-section{
        margin-bottom: 30px;
    }
    .dashboard-panel{
        padding: 17px;
    }
    .resource-card{
        min-height: 105px;
    }
    .resource-text h3{
        font-size: 16px;
    }
    .resource-text p{
        font-size: 12px;
    }
    .quest-item label{
        font-size: 12px;
    }
    .calendar-grid{
        padding: 7px;
        gap: 2px;
    }
    .calendar-day,
    .calendar-date{
        min-height: 29px;
        font-size: 11px;
    }
    .dashboard-footer-note{
        align-items: flex-start;
        padding: 16px;
    }
    .dashboard-footer-note h3{
        font-size: 14px;
    }
    .dashboard-footer-note p{
        font-size: 12px;
    }
}


/* dashboard readability*/
.dashboard-eyebrow,
.section-eyebrow {
    font-size: 13px;
}
.panel-label {
    font-size: 11px;
}
.heading-description {
    font-size: 16px;
}
.section-heading h2 {
    font-size: 27px;
}
.section-heading > p {
    font-size: 14px;
}
.resource-text h3 {
    font-size: 18px;
}
.resource-text p {
    font-size: 14px;
}
.panel-heading h3 {
    font-size: 21px;
}
.panel-description {
    font-size: 14px;
}
.quest-item label {
    font-size: 14px;
}
.weather-note p,
.todo-empty-note {
    font-size: 13px;
}
#to-do-input,
#add-to-do-btn,
.to-do-item {
    font-size: 14px;
}
.calendar-day,
.calendar-date {
    font-size: 13px;
}
.dashboard-footer-note h3 {
    font-size: 17px;
}
.dashboard-footer-note p {
    font-size: 14px;
}

/* Mobile Typography */
@media (max-width: 575.98px) {
    .section-heading h2 {
        font-size: 23px;
    }
    .section-heading > p {
        font-size: 13px;
    }
    .resource-text h3 {
        font-size: 17px;
    }
    .resource-text p,
    .quest-item label {
        font-size: 13px;
    }
}


/* Calendar */
.calendar-date {
    position: relative;
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.calendar-date.selected {
    outline: 2px solid #6b9bc5;
    outline-offset: -2px;
    background-color: #e5f1fc;
    color: #134989;
    font-weight: 700;
}

.calendar-date.today.selected {
    background-color: #134989;
    color: white;
    outline-color: #8bb7df;
}

.calendar-date.has-tasks::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #368477;
    transform: translateX(-50%);
}

.calendar-date.today.has-tasks::after {
    background-color: white;
}

.calendar-selected-note {
    border-top: 1px solid #e8eef4;
    padding-top: 10px;
}

/* Scheduled task information */
.todo-task-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.todo-task-date {
    color: #6c8ba5;
    font-size: 11px;
}
