/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?ixlib=rb-4.0.3&auto=format&fit=crop&w=2560&q=80') no-repeat center center fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #a3b8cc;
    user-select: none;
}
/* Calendar container */
.calendar {
    max-width: 1300px;
    margin: 1rem auto 3rem auto;
    background: rgba(7, 23, 38, 0.90);
    border-radius: 1rem 1rem 1rem 1rem;
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow:
      0 0 20px rgb(7 23 38 / 0.5),
      inset 0 0 15px rgb(13 37 61 / 0.75);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(140px, auto);
    border: 1px solid rgba(20, 50, 79, 0.6);
    overflow: hidden;
}
/* Day-of-week headers */
.calendar .day-header {
    padding: 4rem 1.1rem 0.45rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    color: #5a8191;
    text-align: center;
    border-bottom: 1.3px solid #16466e33;
    user-select: none;
}
/* Cell style */
.calendar .day-cell {
    border-right: 1px solid rgba(20, 50, 79, 0.25);
    border-bottom: 1px solid rgba(20, 50, 79, 0.3);
    padding: 0.7rem 0.8rem 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.85rem;
    line-height: 1.3;
    position: relative;
}
.calendar .day-cell:last-child {
    border-right: none;
}
/* Date number on top left */
.day-number {
    font-weight: 700;
    font-size: 1.05rem;
    color: #e1e5ebcc;
    user-select: none;
}
/* Highlight weekend columns slightly different text color */
.calendar .day-header:nth-child(6),
.calendar .day-header:nth-child(7),
.calendar .day-cell:nth-child(6n),
.calendar .day-cell:nth-child(7n) {
    color: #819bbdcc;
}
/* Highlight Friday column */
.calendar .day-cell.friday,
.calendar .day-header.friday {
    border-top: 2px solid #f18642;
    color: #f18642;
}
/* Highlight Wednesday with stronger text */
.calendar .day-cell.wed .day-number {
    font-weight: 700;
    color: #c9dbe7dd;
}

/* Schedule entry container */
.schedule-entry {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    font-family: monospace, 'Courier New', Courier, monospace;
    line-height: 1rem;
}
.schedule-entry .codetag {
    background: #0a1520;
    border-radius: 4px;
    padding: 0.12rem 0.45rem 0.13rem 0.45rem;
    font-weight: 700;
    color: #a8bccf;
    letter-spacing: 0.07em;
    font-size: 0.8rem;
    user-select: text;
    box-shadow: inset 0 -1.5px 0 #4a5b75;
}
.schedule-entry .time {
    color: #7e9abf;
    font-weight: 500;
    min-width: 45px;
    text-align: right;
    user-select: text;
}
.schedule-entry .code-f {
    font-weight: 500;
    color: #6b7f9e;
    margin-left: 0.35rem;
    user-select: text;
}

/* Orange label for special month date */
.month-indicator {
    position: absolute;
    top: 5px;
    left: 40px;
    background: #f18642;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem 0.15rem 0.4rem;
    border-radius: 0.8rem;
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0px 1px 6px #f18642aa;
}

/**/

.calendar .day-cell.today {
    background: rgba(255, 174, 0, 0.15);
    outline: 2px solid #f18642;
    outline-offset: -4px;
}
.calendar .day-cell.today .day-number {
    color: #f18642;
    font-weight: 800;
}
.month-indicator {
    background: #f18642;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 0.8rem;
    font-size: 0.75rem;
    margin-left: 5px;
}
.calendar .day-cell.empty {
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(20, 50, 79, 0.15);
    border-bottom: 1px solid rgba(20, 50, 79, 0.2);
}