body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* FIXED HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px 8px 20px;
    border-bottom: 1px solid #ccc; /* thinner border */
    z-index: 1000;
}

h1 {
    margin: 0;
    color: #217346; /* Excel green */
}

h2 {
    margin: 4px 0 6px 0;
}

header p {
    margin: 4px 0 0 0;
    font-size: 0.85em;
}

.chat_hi {
    color: blue;
}

.content {
    padding: 165px 20px 40px 20px; /* space for fixed header */
}

.week {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.week-header {
    padding: 14px;
    background: #0078d4;
    color: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-header:hover {
    background: #005fa3;
}

.arrow {
    transition: transform 0.25s ease;
}

.collapsed .arrow {
    transform: rotate(-90deg);
}

.week-content {
    padding: 12px 18px;
    display: none;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.item {
    margin: 6px 0;
    display: flex;
    align-items: flex-start;
}

.item label {
    margin-left: 8px;
}

.subitem {
    margin-left: 32px;
    opacity: 0.85;
}

#clearAllBtn {
    margin-top: 30px;
    padding: 12px 20px;
    font-size: 16px;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#clearAllBtn:hover {
    background: #a61c1c;
}

/* popup image */
.img-btn {
    margin-left: 10px;
    padding: 2px 6px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #888;
    border-radius: 4px;
    background: #eee;
}

.img-btn:hover {
    background: #ddd;
}

/* Popup overlay */
#imgPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup box */
#imgPopupBox {
    background: white;
    padding: 12px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#imgPopupBox img {
    max-width: 100%;
    max-height: 80vh;
}

#imgPopupClose {
    margin-top: 10px;
    padding: 6px 12px;
    cursor: pointer;
}

.close-x {
    position: absolute;
    top: 6px;
    right: 8px;
    background: silver;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: red;
    opacity: 0.5;
    border-radius: 4px;
}

.close-x:hover {
    color: red;
    opacity: 1;
    background: silver;
}

#imgPopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center; /* used only when fallback centering */
    align-items: center;
    z-index: 2000;
}

#imgPopupBox {
    position: absolute; /* allow manual placement */
    background: white;
    padding: 12px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}
