html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.add-events-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.event-buttons-container {
    position: relative;
    display: flex;
    align-items: center;
}
.toggle-events-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    color: #495057;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}
.toggle-events-btn.rotated {
    transform: rotate(180deg);
}
.add-event-buttons {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    border: 2px solid #ccc;
    background: #f8f9fa;
    min-height: 48px;
}
.add-event-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
    min-width: 120px;
    max-width: 180px;
    box-sizing: border-box;
}
.custom-event-btn {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 180px;
    max-width: 240px;
    padding: 10px 18px;
}
.event-btn-icon {
    width: 48px;
    height: 48px;
    margin-right: 16px;
    flex-shrink: 0;
    align-self: center;
}
.event-btn-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    align-items: center;
    text-align: center;
}
.event-btn-content.with-timer {
    justify-content: flex-start;
    align-items: center;
}
.event-btn-content.no-timer {
    justify-content: center;
    align-items: center;
    height: 48px;
}
.event-btn-name {
    font-size: 1.1em;
    font-weight: 500;
    color: #495057;
    text-align: left;
}
.event-btn-timer {
    font-size: 0.95em;
    color: #666;
    margin-top: 2px;
    text-align: left;
}
.add-event-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    color: #212529;
}
.add-event-btn img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}
.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}
.event-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.event-card.condensed {
    display: flex;
    align-items: center;
}
.event-card.expanded {
    display: block;
}
.event-content {
    display: flex;
    align-items: center;
    flex: 1;
}
.event-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}
.expand-icon {
    color: #666;
    transition: transform 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
}
.event-card.expanded .expand-icon {
    transform: rotate(180deg);
}
.time-since {
    font-size: 0.8em;
    color: #666;
    margin-left: 8px;
}
.edit-btn {
    margin-top: 10px;
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
.timeline-scroll {
    position: relative;
    margin-top: 120px; /* Adjust to match the actual height of the fixed bar */
    height: calc(100vh - 120px);
    overflow-y: auto;
}

@media (max-width: 600px) {
    .add-event-buttons {
        gap: 2px;
        padding: 2px;
        min-height: 0;
    }
    .custom-event-btn {
        min-width: 90px;
        max-width: 110px;
        padding: 3px 3px;
    }
    .event-btn-icon {
        width: 22px;
        height: 22px;
        margin-right: 4px;
    }
    .event-btn-content,
    .event-btn-content.with-timer,
    .event-btn-content.no-timer {
        font-size: 0.85em;
        min-width: 0;
        height: auto;
    }
    .event-btn-name {
        font-size: 0.95em;
    }
    .timeline-scroll {
        margin-top: 56px;
        height: calc(100vh - 56px);
    }
    .add-event-text {
        display: none !important;
    }
}

.dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
}

/* Custom Styles */
body {
    font-size: .875rem;
}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0; /* Removed top padding */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

#inline-datepicker .datepicker {
    border: none;
    box-shadow: none;
    width: 100%;
}

#inline-datepicker .datepicker-days table {
    width: 100%;
}

.events-list .date-header {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem 0 .5rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.event-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.event-card .expanded-view {
    display: block !important;
}

#add-event-btn {
    font-size: 1.1rem;
    padding: .75rem;
}
.toast-container {
    z-index: 1100; /* High z-index to appear over modals */
}
.diaper-rash-label {
    font-weight: bold;
    color: #dc3545; /* Bootstrap's danger color */
    font-size: 1.1em;
}

.diaper-rash-label .form-check-input {
    border-color: #dc3545;
}

.health-indicator {
    font-size: 0.9em;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.health-indicator h6 {
    margin-top: 0;
    font-weight: bold;
}

.health-indicator p {
    margin-bottom: 0;
}

.health-indicator ul {
    padding-left: 20px;
    margin-bottom: 0;
} 