/* Windows XP specific styles */
.theme-winxp {
    --win-blue: #2a5699;
    --win-gray: #ece9d8;
    --win-border: #0054E3;
    --win-hover: #b6bdd2;
    --win-active: #9aaccd;
    --win-titlebar: linear-gradient(to bottom, #3d71d3 0%, #2a5699 100%);
    --win-button-gray: #ece9d8;
    --win-border-radius: 3px;
    --win-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    --win-font: 'Tahoma', 'MS Sans Serif', sans-serif;
    --win-titlebar-height: 25px;
    --win-title-font-weight: bold;
    --win-title-font-size: 11px;
    --win-titlebar-text: white;
    --win-content-padding: 13px 11px;
    --win-buttons-padding: 13px 11px;
    --win-buttons-bg: #ece9d8;
    --win-buttons-border-top: 1px solid #7f9db9;
}

.theme-winxp .popup-window {
    border: 1px solid #0054E3;
    background: #ece9d8;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    min-width: 250px;
    max-width: 400px;
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    /* Use xp.css .window styles */
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-top: 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Add outer white border effect */
.theme-winxp .popup-window::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* Add inner border effect */
.theme-winxp .popup-window::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.theme-winxp .popup-window.with-external {
    border: 1px solid #0054E3;
    background: #ece9d8;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
}

.theme-winxp .popup-titlebar {
    background: var(--win-titlebar);
    padding: 3px 3px 3px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: bold;
    font-size: 11px;
    height: 25px;
    border-bottom: 1px solid #0054E3;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 0;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.theme-winxp .popup-titlebar .title-bar-controls {
    display: flex;
    align-items: center;
}

.theme-winxp .popup-titlebar.with-external {
    background: var(--win-titlebar);
    height: 25px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
}

.theme-winxp .popup-close {
    width: 21px;
    height: 21px;
    background: #e33022;
    background: linear-gradient(to bottom, #fb7c78 0%, #e33022 100%);
    border: 1px solid #941100;
    border-radius: 3px;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-weight: normal;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    cursor: pointer;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.theme-winxp .popup-close:hover {
    background: linear-gradient(to bottom, #fcaeab 0%, #f05a49 100%);
    border-color: #c42b1c;
}

.theme-winxp .popup-close:active {
    background: linear-gradient(to bottom, #d92c1f 0%, #c2251a 100%);
    border-color: #941100;
    padding-top: 1px;
}

.theme-winxp .popup-close span {
    position: relative;
    top: -1px;
}

.theme-winxp .popup-content {
    background: #ece9d8;
    padding: 11px 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.theme-winxp .popup-message {
    font-family: 'Tahoma';
    font-size: 11px;
    line-height: 1.3;
    color: #000000;
    margin: 0;
    flex: 1;
}

.theme-winxp .popup-message.with-external {
    font-family: 'Tahoma';
    font-size: 11px;
    line-height: 13px;
}

.theme-winxp .popup-buttons {
    padding: 11px 12px;
    background: #ece9d8;
    border-top: 1px solid #d4d0c8;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.theme-winxp .popup-button {
    background: linear-gradient(180deg, #ffffff 0%, #e1e1e1 100%);
    border: 1px outset #7f9db9;
    border-radius: 3px;
    padding: 2px 12px;
    min-width: 75px;
    height: 23px;
    font-family: 'Tahoma';
    font-size: 11px;
    color: black;
    margin: 0;
    cursor: pointer;
}

.theme-winxp .popup-button.with-external {
    font-family: 'Tahoma';
    font-size: 11px;
    border-radius: 3px;
    padding: 2px 11px;
}

.theme-winxp .popup-button:focus {
    outline: 1px dotted #000;
    outline-offset: -3px;
}

.theme-winxp .popup-button.primary-button {
    border: 1px solid #0054E3;
}

.theme-winxp .popup-button:hover {
    background: linear-gradient(180deg, #f0f7fd 0%, #d3e9ff 100%);
    border-color: #1f77d0;
}

.theme-winxp .popup-button:active,
.theme-winxp .popup-button.active {
    border: 1px inset #7f9db9;
    padding: 3px 11px 1px 13px;
    background: linear-gradient(180deg, #e1e1e1 0%, #ffffff 100%);
}