/* Calculator App Styles - Windows 11 Dark Theme (Exact Match) */
.calculator-app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #202020;
    padding: 0;
}

.calculator-container {
    background: #202020;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #202020;
}

.calculator-mode {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-history-btn {
    width: 40px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.05s ease;
}

.calculator-history-btn:hover {
    background: rgba(255, 255, 255, 0.0605);
}

.calculator-history-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.calculator-display-container {
    padding: 0px 16px 8px 16px;
    text-align: right;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #202020;
}

.calculator-expression {
    font-size: 14px;
    color: #9d9d9d;
    min-height: 20px;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.calculator-result {
    font-size: 48px;
    font-weight: 600;
    color: #ffffff;
    word-wrap: break-word;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.calculator-memory {
    padding: 0 16px 4px 16px;
    font-size: 12px;
    color: #9d9d9d;
    text-align: left;
    display: none;
    background: #202020;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: #202020;
    flex: 1;
    padding: 4px;
}

.calc-btn {
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    border: none;
    background: #323232;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.05s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
    border-radius: 4px;
}

.calc-btn:hover {
    background: #3e3e3e;
}

.calc-btn:active {
    background: #4a4a4a;
}

.calc-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.memory-btn {
    font-size: 14px;
    color: #ffffff;
    background: #323232;
    min-height: 48px;
}

.memory-btn:hover {
    background: #3e3e3e;
}

.number-btn {
    background: #3b3b3b;
    font-size: 18px;
    font-weight: 500;
}

.number-btn:hover {
    background: #484848;
}

.number-btn:active {
    background: #545454;
}

.function-btn {
    background: #323232;
    font-size: 15px;
}

.function-btn:hover {
    background: #3e3e3e;
}

.function-btn:active {
    background: #4a4a4a;
}

.operator-btn {
    background: #323232;
    font-size: 20px;
}

.operator-btn:hover {
    background: #3e3e3e;
}

.operator-btn:active {
    background: #4a4a4a;
}

.equals-btn {
    background: #0078d4;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.equals-btn:hover {
    background: #1984d8;
}

.equals-btn:active {
    background: #2b8fdb;
}

/* Calendar App Styles - Windows 11 Dark Theme */
.calendar-app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #202020;
    padding: 0;
}

.calendar-container {
    background: #202020;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    font-family: 'Segoe UI Variable Display', 'Segoe UI', sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
}

.calendar-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.05s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.0605);
}

.calendar-nav-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-nav-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 4px;
    padding: 0;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #9d9d9d;
    padding: 8px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.05s ease;
    background: transparent;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.0605);
}

.calendar-day:active {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.other-month {
    color: #5d5d5d;
}

.calendar-day.today {
    background: #0078d4;
    color: #ffffff;
    font-weight: 600;
}

.calendar-day.today:hover {
    background: #1984d8;
}

.calendar-day.today:active {
    background: #2b8fdb;
}

.calendar-day.selected {
    background: rgba(0, 120, 212, 0.3);
    color: #ffffff;
    font-weight: 600;
}

.calendar-day.selected:hover {
    background: rgba(0, 120, 212, 0.4);
}

.calendar-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    padding: 0;
}

.calendar-today-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid #5d5d5d;
    border-radius: 4px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.05s ease;
}

.calendar-today-btn:hover {
    background: rgba(255, 255, 255, 0.0605);
    border-color: #767676;
}

.calendar-today-btn:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8a8a8a;
}
