/*
This file is part of a quick side project. AI assistance was used to generate much of the code, and code quality or best practices were not a priority.
*/
body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}
#calendar-view {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 24px;
    overflow-y: auto;
    height: 80vh;
}
.week {
    display: flex;
    margin-bottom: 12px;
}
.day {
    flex: 1;
    border: 1px solid #ddd;
    background: #f7f7f7;
    margin: 0 2px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* allow children to stretch full width */
    justify-content: center;
    font-size: 1.1em;
    border-radius: 4px;
}
.day.today {
    background: #cce5ff;
    font-weight: bold;
}
.day-header {
    font-weight: bold;
    margin-bottom: 4px;
}
/* Keep weekday header cells small and not affected by large .day min-height */
.day.day-header {
    min-height: 28px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
}
.day.yes {
    background: #d4edda !important;
    border-color: #0df30d;
}
.day.no {
    background: #f8d7da !important;
    border-color: #dc3545;
}
.unanimous {
    background: #00ff00 !important;
    box-shadow: 0 0 0 2px #009900;
}
.almost-all-1 {
    background: #66ff66 !important;
    box-shadow: 0 0 0 2px #33cc33;
}
.almost-all-2 {
    background: #b3ffb3 !important;
    box-shadow: 0 0 0 2px #66cc66;
}
.almost-all-3 {
    background: #e0ffe0 !important;
    box-shadow: 0 0 0 2px #99cc99;
}

/* Inner selectable boxes inside each day */
.day-box {
    background: #fff;
    border-radius: 3px;
    padding: 0; /* remove padding to make boxes compact */
    margin: 1px 0; /* tighter spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 15px; /* smaller height */
    width: 100%;
    font-size: 12px;
    /* strong visible outline as requested */
    border: 1px solid #000;
    box-sizing: border-box;
}
.day-box:hover {
    background: #fbfbfb;
}
.day-box.yes {
    background: #d4edda;
    /* keep selected background but maintain black border for visibility */
    border-color: #000;
}

/* Visual separators and accents between the two inner boxes */
.day-box + .day-box {
    border-top: 1px solid #e6e6e6; /* thin divider between boxes */
}
.half-hour-box {
    padding-left: 0; /* remove extra left padding */
    /* full border on each side to make boxes clearly visible */
    border: 1px solid #000;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Container and date number styling for stacked half-hour boxes */
.half-hour-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    width: 100%;
    padding: 0 6px; /* preserve small horizontal padding inside the day cell */
    box-sizing: border-box;
}
.half-hour-box {
    flex: 1; /* make both boxes equal height */
}
.date-number {
    font-weight: bold;
    text-align: center;
    margin-bottom: 6px;
}

/* Make the inner boxes stand out a bit from the parent day cell */
.day {
    padding-top: 6px;
    padding-bottom: 6px;
}
