:root {
    --bg-dark: #111213;
    --fg-light: #d6d6d6;
    --accent-blue: #58a6ff;
    --calendar-green: #238636;
    --calendar-green-hover: #2ea043;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-dark);
}

body {
    padding: 0 10px;
    margin: 50px auto;
    max-width: 1200px;
    color: var(--fg-light);
    font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--fg-light);
    font-weight: normal;
}

.back-to-calendar {
    margin: 1rem 0;
}

.company-info {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.calendar-section {
    margin-bottom: 2rem;
}

.calendar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

ul {
    margin: calc(1lh - 1rem) 0 1rem 1.5rem;
}

li {
    margin: 0.1rem 0;
}

.legend {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.legend-bar {
    width: 20px;
    height: 12px;
}

.legend-bar.available {
    background-color: var(--calendar-green);
}

.legend-bar.booked {
    background-color: #333;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 3px,
            #444 3px,
            #444 6px);
}

.global-counter {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--fg-light);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background-color: #222;
    border: 1px solid #333;
    overflow: hidden;
}

.day-cell {
    background-color: var(--bg-dark);
    padding: 1rem;
    min-height: 120px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #222;
}

.day-cell:hover {
    background-color: #1a1a1a;
}

.day-cell.no-slots {
    cursor: default;
    opacity: 0.6;
}

.day-cell.no-slots:hover {
    background-color: var(--bg-dark);
}

.day-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-weight: normal;
    color: #888;
    font-size: 0.8rem;
}

.slots {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slot {
    height: 12px;
    transition: all 0.2s;
}

.slot.available {
    background-color: var(--calendar-green);
}

.slot.booked {
    background-color: #333;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 3px,
            #444 3px,
            #444 6px);
}

.weekday-header {
    background-color: #222;
    padding: 0.75rem;
    text-align: center;
    font-weight: normal;
    color: var(--fg-light);
    border-bottom: 1px solid #333;
    font-family: inherit;
}

.calendar-container {
    overflow: hidden;
    border: 1px solid #333;
}

.weekday-headers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: #222;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    font-family: inherit;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--fg-light);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.modal-date {
    color: #888;
    font-size: 0.8rem;
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.book-button {
    display: inline-block;
    background-color: var(--calendar-green);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.book-button:hover {
    background-color: var(--calendar-green-hover);
    text-decoration: none;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    font-family: inherit;
}

.close-modal:hover {
    color: var(--fg-light);
}

/* Info page specific styles */
.info-content {
    max-width: 800px;
}

.info-content h3 {
    font-size: 1.05em;
    color: var(--fg-light);
    font-weight: normal;
}

.info-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        max-width: 100%;
        padding: 0 15px;
    }

    .calendar-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .calendar {
        gap: 1px;
    }

    .day-cell {
        min-height: 100px;
        padding: 0.75rem;
    }

    .slot {
        height: 10px;
    }
}
