* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: 'Oswald', Arial, sans-serif;
    background: #000033;
    color: #ffffff;
    min-height: 100vh;
}

.page-wrapper {
    padding: 0;
}

/* TITLE */
.title-bar {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 68px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* LAYOUT */
.layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 0;
    min-height: calc(100vh - 100px);
}

/* SIDEBARS */
.sidebar {
    font-size: 13px;
    padding: 20px 12px;
}

.section-title {
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 8px;
}

.nav-link,
.member {
    text-align: center;
    margin: 18px 0;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    transition: opacity 0.2s;
}

.nav-link:hover,
.member:hover {
    opacity: 0.65;
}

.spacer {
    height: 100px;
}

/* CENTER */
.calendar-container {
    width: 100%;
    padding: 0px;
    position: relative;
}

/* MONTH BAR */
.month-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    gap: 40px;
    height: 40px;
}

.arrow {
    background: #6B1E23;
    color: #c8a060;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
}

.month-title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* WEEKDAYS */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 0;
}

/* GRID */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 4px;
}

.day-cell {
    height: 100px;
    position: relative;
    padding: 6px;
    border-radius: 0;
    overflow: hidden;
}

.day-cell.active {
    background: #1e293b;
    cursor: pointer;
}

.day-cell.active:hover {
    background: #263548;
}

.day-cell.inactive {
    background: #2c323a;
    cursor: pointer;
}

.date {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 13px;
    color: #ffffff;
}

.inactive .date {
    color: #666666;
}

.day-cell.today .date {
    color: #c8a060;
    font-weight: 700;
}

/* EVENT PILLS */
.event-pill {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #2a3f5a;
    cursor: pointer;
}

.event-pill + .event-pill {
    margin-top: 4px;
}

.popup-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

.save-btn { background: #3a3510; color: #ffffff; border: none; border-radius: 6px; padding: 8px 24px; font-size: 12px; cursor: pointer; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; } .save-btn:hover { background: #4a4518; } .delete-btn { background: transparent; color: #ff6666; border: none; font-size: 12px; cursor: pointer; font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.popup select option { background: #605926; color: #ffffff; }
.event-overflow {
    font-size: 10px;
    color: #888888;
    margin-top: 2px;
    padding-left: 4px;
}

/* UPCOMING */
.upcoming-item {
    margin-top: 14px;
}

.up-date {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.up-title {
    font-size: 10px;
    text-transform: uppercase;
}

.up-members {
    font-size: 10px;
    color: #aaaaaa;
}

/* POPUP */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    display: none;
}

.popup {
    width: 390px;
    background: #706a2c;
    border-radius: 14px;
    padding: 18px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: #ffffff;
    display: none;
}

.popup-date {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.popup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-label {
    width: 68px;
    font-size: 12px;
    flex-shrink: 0;
}

.popup input,
.popup select,
.popup textarea {
    background: #605926;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
}

.popup-time-pill {
    background: #605926;
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 3px 10px;
    font-size: 11px;
    width: 60px;
    height: 22px;
    cursor: pointer;
}

.popup-time-pill.active {
    background: #3a3510;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 700;
}

.popup-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 40px;
    font-size: 11px;
    text-transform: uppercase;
}

.popup textarea {
    width: 100%;
    min-height: 40px;
    resize: vertical;
}