body {
    font-family: 'Inter', Arial, sans-serif;
    background: #fff8e8;
    margin: 0;
    padding: 0;
    color: #222;
}

.agenda-container {
    width: 100%;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
}

.agenda-section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  background-color: #FFF1DD;
  box-sizing: border-box;
}

.agenda-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    /* height: calc(100vh - 120px);  */
    /* min-height: 600px; */
}

.agenda-content h2 {
    text-align: left;
    font-size: var(--h2-font-size);
    margin-bottom: 30px;
    color: var(--h2-text-color);
    flex-shrink: 0;
}

.agenda-content h2::after {
    content: '';
    display: block;
    width: 460px;
    height: 3px;
    background-color: var(--header-link-color);
    margin-top: 10px;
}

/* Timeline component wrapper */
.timeline-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex child with overflow */
}

.week-navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px;
    gap: 2px;
    position: relative;
    background-color: #fff8e8;
    border: solid 1px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
}

.day-pill {
    padding: 16px 16px;
    background: transparent;
    color: #222;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border-radius: 24px;
    flex: 1;
    border: none;
    font-family: 'Inter', Arial, sans-serif;
}

.day-pill.active {
    background: #d9a826;
    font-weight: 600;
}

.nav-button {
    background: #d9a826;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Inter', Arial, sans-serif;
}

.agenda-body-container {
    height: 550px;
    overflow-y: auto;
    background: #fff8e8;
}

.agenda-body {
    background: #fff8e8;
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr;
    width: 100%;
}

.time-column {
    display: flex;
    flex-direction: column;
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff8e8;
}

.time-label {
    height: 60px;
    display: flex;
    align-items: flex-start; /* Align to the top of the cell */
    justify-content: flex-end;
    padding-right: 8px;
    font-weight: 500;
    font-size: 0.9em;
    box-sizing: border-box;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    width: 100%;
}

.time-row {
    height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
}

/* Remove the time markers that created the 30-minute lines */
.time-marker {
    display: none;
}

.current-time {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px solid #ff5757;
    z-index: 5;
    pointer-events: none; /* Make sure it doesn't interfere with clicking */
}

.current-time::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff5757;
    border-radius: 50%;
    left: -5px;
    top: -6px;
}

/* Event Styling */
.event {
    position: absolute;
    background: rgba(217, 168, 38, 0.9);
    border-radius: 8px;
    padding: 8px;
    margin: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    overflow: hidden;
    z-index: 3;
    color: #333;
}

.event:hover {
    background: rgba(217, 168, 38, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-header {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 4px;
    color: #333;
}

.event-content {
    font-size: 0.8em;
    line-height: 1.3;
}

.event-title {
    font-weight: 500;
    margin-bottom: 2px;
    color: #444;
}

.event-time {
    font-weight: 400;
    color: #666;
    margin-bottom: 4px;
}

.event-description {
    color: #555;
    margin-bottom: 6px;
    font-size: 0.75em;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.attendees {
    display: flex;
    align-items: center;
}

.badge {
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
}

.more-info {
    color: #333;
    text-decoration: none;
    font-size: 0.7em;
    font-weight: 500;
}

.more-info::after {
    content: ' →';
    margin-left: 2px;
}

/* Current Time Indicator */
.current-time {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #d9a826;
    z-index: 2;
    pointer-events: none;
}

.current-time::before {
    content: '';
    position: absolute;
    left: -6px;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #d9a826;
    border-radius: 50%;
}

/* Export Modal Styles */
.export-btn {
    background-color: #D4AC39;
    color: white;
    border: none;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 150px;
    float: right;
}

.export-btn:hover {
    background-color: #B8941F;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #FFF8ED;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #1F1F1F;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1F1F1F;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E1C77A;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #D4AC39;
    box-shadow: 0 0 0 2px rgba(212, 172, 57, 0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.modal-actions button[type="button"] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.modal-actions button[type="submit"] {
    background-color: #D4AC39;
    color: white;
}

.modal-actions button:hover {
    opacity: 0.9;
}

/* Responsive Design for Agenda */
@media (max-width: 768px) {
    .agenda-body-container {
        height: 400px;
    }
    
    .day-pill {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .time-label {
        height: 50px;
        font-size: 0.8em;
    }
    
    .time-row {
        height: 50px;
    }
    
    .event {
        padding: 6px;
        font-size: 0.75em;
    }
}