.win-cal-container {
    font-family: "MS Sans Serif", "Courier New", system-ui, sans-serif;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #0a0a0a #0a0a0a #ffffff;
    box-shadow: 1px 1px 0 0 #000000;
    padding: 3px;
    box-sizing: border-box;
    user-select: none;
}

/* WINDOWS 95/98 THEME */
.win-cal-container.theme-win5,
.win-cal-container.theme-win95 {
    background-color: #c0c0c0;
    color: #000000;
}
.win-cal-container.theme-win95 .win-cal-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #ffffff;
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
}

/* WINDOWS XP LUNA */
.win-cal-container.theme-winxp {
    border-radius: 5px 5px 0 0;
    border: 3px solid #0053e1;
    background-color: #ece9d8;
    box-shadow: none;
}
.win-cal-container.theme-winxp .win-cal-titlebar {
    background: linear-gradient(to bottom, #0058e6 0%, #3a82ff 8%, #0053e1 15%, #0053e1 85%, #0040b0 100%);
    color: #ffffff;
    border-radius: 4px 4px 0 0;
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #000000;
}

/* WINDOWS 10 MODERN */
.win-cal-container.theme-win10 {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #454545;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.win-cal-container.theme-win10 .win-cal-titlebar {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d2d2d;
    font-size: 12px;
}

/* Title Elements */
.win-cal-title {
    display: flex;
    align-items: center;
    gap: 4px;
}
.win-cal-title-icon {
    font-size: 14px;
}

/* Button sets */
.win-cal-window-buttons {
    display: flex;
    gap: 2px;
}
.win-cal-window-buttons button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #0a0a0a #0a0a0a #ffffff;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.win-cal-window-buttons button::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.win-btn-close::after {
    content: "✕" !important;
    font-size: 8px;
    font-weight: bold;
    color: #000;
}

/* Body and Clock */
.win-cal-body {
    padding: 10px;
}
.win-cal-clock-panel {
    background-color: #000;
    color: #00ff00;
    font-family: "Courier New", Courier, monospace;
    padding: 8px;
    text-align: center;
    border: 2px inset #ffffff;
    margin-bottom: 10px;
    box-shadow: inset 1px 1px 1px #000;
}
.theme-winxp .win-cal-clock-panel {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #919b9c;
    border-radius: 3px;
}
.theme-win10 .win-cal-clock-panel {
    background-color: #2d2d2d;
    color: #ffffff;
    border: none;
    font-family: inherit;
    border-radius: 4px;
}

.win-cal-time-display {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}
.win-cal-date-display {
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.8;
}

/* Selectors / Controls */
.win-cal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 5px;
}
.win-cal-dropdowns {
    display: flex;
    gap: 4px;
}
.win-cal-select {
    font-size: 11px;
    padding: 1px;
    border: 2px inset #fff;
    background-color: #fff;
    color: #000;
}
.theme-win10 .win-cal-select {
    background-color: #2d2d2d;
    border: 1px solid #454545;
    color: #fff;
    padding: 4px;
    border-radius: 3px;
}

.win-cal-nav-btn {
    width: 22px;
    height: 22px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #0a0a0a #0a0a0a #ffffff;
    cursor: pointer;
    font-size: 10px;
}
.theme-win10 .win-cal-nav-btn {
    background: #2d2d2d;
    border: 1px solid #454545;
    color: #fff;
    border-radius: 3px;
}

/* Grid layout */
.win-cal-grid-wrapper {
    background-color: #ffffff;
    border: 2px inset #ffffff;
    padding: 6px;
}
.theme-win10 .win-cal-grid-wrapper {
    background-color: #1f1f1f;
    border: 1px solid #2d2d2d;
}

.win-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    border-bottom: 1px solid #a0a0a0;
    padding-bottom: 4px;
    margin-bottom: 4px;
    color: #808080;
}
.win-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}

.win-cal-day {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    color: #000000;
}
.theme-win10 .win-cal-day {
    color: #ffffff;
}
.win-cal-day.empty {
    cursor: default;
}
.win-cal-day.other-month {
    color: #808080;
}
.win-cal-day:hover:not(.empty) {
    background-color: #000080;
    color: #ffffff;
}
.theme-win10 .win-cal-day:hover:not(.empty) {
    background-color: #2d2d2d;
}
.win-cal-day.active {
    background-color: #000080;
    color: #ffffff;
    font-weight: bold;
}
.win-cal-day.today {
    border: 1px dotted #000000;
}
.theme-win10 .win-cal-day.today {
    border-color: #ffffff;
}

/* Status / Footer button */
.win-cal-status {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}
.win-cal-btn-today {
    font-size: 11px;
    padding: 3px 12px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #0a0a0a #0a0a0a #ffffff;
    cursor: pointer;
}
.theme-win10 .win-cal-btn-today {
    background: #2d2d2d;
    color: #fff;
    border: 1px solid #454545;
    border-radius: 3px;
}
