body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
.calendar-container {
    background-color: #ffffff;
    border-radius: 1rem; /* Rounded corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    max-width: 95vw; /* Adjusted to fill more of the browser width */
    width: 100%;
}
.day-cell {
    min-height: 150px; /* Increased height for new inputs */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb; /* Default background */
    min-width: 0; /* Allows flex/grid items to shrink */
    transition: background-color 0.3s ease; /* Smooth transition for background change */
}
/* New style for done days */
.day-cell.day-done {
    background-color: #C6F6D5 !important; /* Green for done */
}
.day-cell.day-missed {
    background-color: #FFEBEE !important; /* Red for missed */
}
.day-cell.day-future {
    background-color: #e5e7eb !important; /* Gray for future */
}
.day-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.youtube-links-container {
    flex-grow: 1; /* Allows it to take available space */
    width: 100%;
    max-height: 60px; /* Max height for scrollable links */
    overflow-y: auto; /* Scroll for multiple links */
    margin-bottom: 0.5rem;
    padding-right: 5px; /* Prevent scrollbar from overlapping content */
}
.youtube-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    word-break: break-all; /* Break long words */
}
.youtube-link-item a {
    color: #3b82f6; /* Blue link color */
    text-decoration: underline;
    font-size: 0.875rem;
    line-height: 1.25rem;
    flex-grow: 1;
    margin-right: 8px;
}
.youtube-link-item button {
    background-color: #ef4444; /* Red for remove */
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.youtube-link-item button:hover {
    background-color: #dc2626;
}

.link-input-area {
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
}
.link-input {
    flex-grow: 1;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-right: 0.5rem;
    min-width: 0; /* Added to allow shrinking and prevent overflow */
}
.add-link-btn {
    background-color: #22c55e; /* Green for add */
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.add-link-btn:hover {
    background-color: #16a34a;
}
.done-checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}
.done-checkbox {
    margin-right: 0.5rem;
}
.month-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    /* text-align: center; This is now handled by its parent flex container */
}
.week-day-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}
.week-day-names div {
    padding: 0.5rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
/* Style for days outside the requested range */
.outside-range {
    background-color: #e5e7eb;
    color: #9ca3af;
}
