/* Calendar Window Styles */

.calendar-window {
    width: 1000px;
    height: 750px;
    min-width: 900px;
    min-height: 700px;
    background: rgb(255, 255, 255);
    backdrop-filter: none;
}

.calendar-window .title-bar {
    background-color: rgb(249, 249, 249);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 32px);
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 10px 0 0 30px;
    flex-shrink: 0;
}

.calendar-year {
    font-size: 48px;
    font-weight: 300;
    color: #000;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: min(3.5vw, max(1.5vh, 12px)) min(2.5vw, max(1vh, 10px));
    flex: 1;
    margin: max(1vh, 10px) 30px max(3vh, 30px) 30px;
    overflow: visible;
    box-sizing: border-box;
    min-height: 0;
}

.month-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    overflow: visible;
}

.month-name {
    font-size: 16px;
    font-weight: 400;
    color: #FF3B30;
    margin: 0 0 6px 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.month-calendar {
    width: 100%;
    max-width: 200px;
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.day-header {
    text-align: center;
    font-weight: 500;
    color: #666;
    padding: 1px 0;
    font-size: 9px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.day-cell {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    border-radius: 10px;
    position: relative;
}

.day-cell.today {
    background-color: #FF3B30;
    color: white;
    font-weight: 500;
}

.day-cell.other-month {
    color: #ccc;
}

/* Title bar icons styling */
.calendar-window .title-bar-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.calendar-window .toolbar-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.calendar-window .toolbar-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    object-fit: contain;
}

.calendar-window .toolbar-icon-wrapper {
    padding: 2px 4px;
    border-radius: 4px;
}

.calendar-window .toolbar-icon-wrapper:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-window .toolbar-icon:hover {
    opacity: 0.7;
}

.calendar-window.focused .toolbar-icon {
    opacity: 0.5;
}

.calendar-window.focused .toolbar-icon:hover {
    opacity: 0.8;
}

/* Unfocused window toolbar icons */
.calendar-window:not(.focused) .toolbar-icon {
    opacity: 0.3;
}

/* Traffic light styling */
.calendar-window .dot {
    background-color: #c0c0c0;
    transition: background-color 0.2s ease;
}

.calendar-window.focused .dot.red {
    background-color: #ff5f57;
}

.calendar-window.focused .dot.yellow {
    background-color: #ffbd2e;
}

.calendar-window.focused .dot.green {
    background-color: #28ca42;
} 