/* Windows 7 specific styles */
.theme-win7 {
    --win-blue: #1d91eb;
    --win-gray: #ffffff;
    --win-border: #7c95b4;
    --win-hover: #e5f1fb;
    --win-active: #cce4f7;
    --win-titlebar: rgba(174, 207, 247, 0.85);
    --win-button-gray: #f0f0f0;
    --win-border-radius: 3px;
    --win-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --win-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --win-titlebar-height: 30px;
    --win-title-font-weight: normal;
    --win-title-font-size: 12px;
    --win-titlebar-text: #000000;
    --win-content-padding: 15px 12px;
    --win-buttons-padding: 15px 12px;
    --win-buttons-bg: #f0f0f0;
    --win-buttons-border-top: 1px solid rgba(0,0,0,0.14);
}

.theme-win7 .popup-window {
    background: #ffffff;
    border: 1px solid #708090;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.35);
    position: relative;
    border-radius: 6px;
    min-width: 320px;
    max-width: 400px;
    font-family: 'Segoe UI', sans-serif;
}

.theme-win7 .popup-window {
    border-radius: 6px;
    border: 1px solid rgba(124, 149, 180, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 2px 12px rgba(0, 0, 0, 0.3);
}

.theme-win7 .popup-window::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    border-radius: 6px;
}

.theme-win7 .popup-titlebar {
    background: linear-gradient(180deg, rgba(220, 235, 252, 0.95) 0%, rgba(174, 207, 247, 0.9) 100%);
    padding: 2px 2px 2px 12px;
    height: 30px;
    border-bottom: 1px solid rgba(124, 149, 180, 0.8);
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.theme-win7 .popup-titlebar .title-bar-controls {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(124, 149, 180, 0.4);
}

.theme-win7 .popup-titlebar span {
    color: #000000;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

.theme-win7 .popup-close {
    width: 45px;
    height: 26px;
    background: transparent;
    color: #000;
    font-family: "Segoe UI Symbol", "Segoe UI", sans-serif;
    font-size: 14px;
    margin: 0;
    border-radius: 0 5px 0 0;
    transition: background 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-win7 .popup-close:hover {
    background: #e81123;
    color: #ffffff;
    border: 1px solid #ad1111;
}

.theme-win7 .popup-close:active {
    background: #c42b1c;
    border-color: #941100;
}

.theme-win7 .popup-content {
    background: #ffffff;
    padding: 16px 12px;
}

.theme-win7 .popup-message {
    color: #000000;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.theme-win7 .popup-buttons {
    padding: 12px;
    background: #f0f0f0;
    border-top: 1px solid rgba(0,0,0,0.14);
    border-radius: 0 0 5px 5px;
}

.theme-win7 .popup-button {
    background: linear-gradient(180deg, #f8f8f8 0%, #e7e7e7 100%);
    border: 1px solid #adadad;
    border-radius: 3px;
    padding: 3px 16px;
    min-width: 75px;
    height: 23px;
    font-size: 11px;
    color: #000000;
    box-shadow: 0 1px 1px rgba(255,255,255,0.8);
    margin: 0;
    cursor: pointer;
}

.theme-win7 .popup-button:hover {
    background: linear-gradient(180deg, #f0f7fc 0%, #e3f1fa 100%);
    border-color: #3884d1;
}

.theme-win7 .popup-button:active,
.theme-win7 .popup-button.active {
    background: linear-gradient(180deg, #e3f1fa 0%, #f0f7fc 100%);
    border-color: #3884d1;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.theme-win7 .popup-button.primary-button {
    background: linear-gradient(180deg, #61a8e7 0%, #3884d1 100%);
    border-color: #2972c0;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.theme-win7 .popup-button.primary-button:hover {
    background: linear-gradient(180deg, #72b4ed 0%, #4691d8 100%);
    border-color: #2972c0;
}

.theme-win7 .popup-button.primary-button:active,
.theme-win7 .popup-button.primary-button.active {
    background: linear-gradient(180deg, #4691d8 0%, #72b4ed 100%);
    border-color: #2972c0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.theme-win7 .popup-window.with-external {
    border-radius: 6px;
    border: 1px solid rgba(124, 149, 180, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.theme-win7 .popup-titlebar.with-external {
    display: flex;
    align-items: center;
    height: 30px;
    background: linear-gradient(180deg, rgba(220, 235, 252, 0.9) 0%, rgba(174, 207, 247, 0.85) 100%);
    border-bottom: 1px solid rgba(124, 149, 180, 0.8);
    border-radius: 5px 5px 0 0;
}

.theme-win7 .popup-close.with-external {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c42b1c;
}

.theme-win7 .popup-button.with-external {
    border-radius: 3px;
    padding: 3px 16px;
}