
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    background: #eef2f5;
    min-height: 100vh;
}

.sidebar {
    width: 140px;
    background: #3f51b5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.sidebar a {
    color: #fff;
    font-size: 1.5em;
    margin: 15px 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar a:hover {
    color: #ffeb3b;
}

.icon-label {
    font-size: 0.75em;
    margin-top: 4px;
}

.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2b40b5;
}

h2 {
    font-size: 1.5em;
    color: #13187a;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
}

h3 {
    font-size: 1.2em;
    color: #333;
    margin-top: 5px;
    margin-bottom: 3px;
    text-align: left;
}




h4 {
    font-size: 1em;
    color: #333;
    margin-top: 15px;
    margin-bottom: 3px;
    text-align: left;
}

.two-column {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.two-column section {
    flex: 1;
}

section {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-left: 9px solid;
}

#about {
    border-color: #f06292;
}

#health-safety {
    border-color: #ba68c8;
}

#medications-section {
    border-color: #f88035;
}

#schedule {
    border-color: #81c784;
}

#notes {
    border-color: #ffb74d;
}

#weather {
    border-color: #aed581;
}

details {
    margin-top: 10px;
    background: #faf9ff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker,
summary::marker {
    display: none;
}

summary:before {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #2196f3;
}

details[open] summary:before {
    transform: rotate(90deg);
}


.no-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


.calendar table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.calendar th,
.calendar td {
    border: 1px solid #ddd;
    padding: 8px;
    min-height: 40px;
}

.notes textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}

.placeholder {
    color: #aaa;
}

@media (max-width: 900px) {
    .two-column {
    flex-direction: column;
    }
    .sidebar {
    display: none;
    }
    body {
    flex-direction: column;
    }
}

.health-safety-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lists-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lists-container details {
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
}

.health-safety-container details {
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
}

.two-column-checklist {
    display: flex;
    gap: 20px;
}

.checklist-column {
    flex: 1;
}

.checklist-column h3 {
    margin-bottom: 1px;
    font-size: 1.2em;
    color: #333;
}


/* === Calendar CSS === */
#calendar-section {
    border-left: 8px solid #888;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-top: 15px;
}
#calendar-title {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-cell {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    min-height: 40px;
    position: relative;
}
.calendar-cell span {
    position: relative;
    z-index: 1;
}
.calendar-cell.complete {
    background-color: #4fc3f7;
    color: #fff;
}
.calendar-cell.incomplete {
    background-color: #ccc;
    color: #333;
}

.history-btn {
    position: absolute;       /* remove from normal flow and float */
    top: 10px;                /* distance from section’s top edge */
    right: 10px;              /* distance from section’s right edge */
    padding: 0;               /* no extra padding around the image */
    border: 2px solid #ccc;   /* visible border */
    border-radius: 4px;       /* rounded corners */
    background-color: #fff;   /* white backdrop behind image */
    cursor: pointer;          /* clickable pointer */
}
.history-btn img {
    display: block;           /* remove inline whitespace */
    width: 48px;              /* or whatever thumbnail size */
    height: auto;             /* maintain aspect ratio */ 
}

.hidden {
    display: none;            /* hide the element */
}   

.history-btn:hover {
    background: #ad1457;
}

/* 2) Modal backdrop */
#historyModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* 3) Modal content box */
#historyModal .modal-content {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 600px;
}
/* 4) Close button */
    #historyModal .close-btn {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 1.25rem;
    cursor: pointer;
}

