/*
 * Windows 11 (Fluent Design / WinUI 3)
 * Rounded corners, subtle elevation, and modern typography
 */

.win11 .dialog {
    background-color: #ffffff; /* Top Tone */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.14),
        0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.win11 .dialog .header {
    background: transparent;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 0 0 0 16px;
    color: #1b1b1b;
}

.win11 .dialog .header .title {
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #1b1b1b;
}

.win11 .dialog .header .x:before {
    content: '✕';
    font-weight: 300;
}

.win11 .dialog .header .x {
    width: 46px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: transparent;
    color: #1b1b1b;
    position: static;
    border-radius: 0 8px 0 0;
    transition: background-color 0.1s, color 0.1s;
    cursor: default;
}

.win11 .dialog .header .x:hover {
    background-color: #c42b1c;
    color: #ffffff;
}

.win11 .dialog .body {
    padding: 12px 24px 0 24px; /* Removed bottom padding */
    background: transparent;
}

/* Flex layout to place icon next to text cleanly */
.win11 .dialog .body .content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.win11 .dialog .body {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.win11 .dialog .body .icon-container {
    padding-top: 4px;
}

.win11 .dialog .body .text {
    font-size: 14px;
    color: #1b1b1b;
    margin-bottom: 24px;
    line-height: 1.45;
}

.win11 .dialog .body .checkbox-row {
    margin-bottom: 24px; /* Ensure spacing before the two-tone buttons block */
}

.win11 .dialog .body .checkbox-row label {
    color: #1b1b1b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.win11 .dialog .body .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px 0 24px 0; /* Add top/bottom padding to create the two-tone bar */
    border-top: 1px solid rgba(0,0,0,0.06);
    
    /* Setup for two-tone background trick */
    position: relative;
    z-index: 1;
}

.win11 .dialog .body .buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1000px;  /* Stretch far beyond the dialog */
    right: -1000px;
    bottom: -1000px;
    background-color: #f3f3f3; /* The lower tone color */
    z-index: -1;
}

/* WinUI 3 Standard Buttons */
.win11 .dialog .body .button {
    min-width: 72px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfbfb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15); /* Subtle elevation */
    font-size: 14px;
    border-radius: 4px;
    cursor: default;
    padding: 0 16px;
    color: #1b1b1b;
    transition: background-color 0.1s, border-color 0.1s;
}

.win11 .dialog .body .button:hover {
    background: #f6f6f6;
    border-color: rgba(0, 0, 0, 0.08);
}

.win11 .dialog .body .button:active {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Flattens on press */
    transform: translateY(1px);
}

/* Primary Button (Accent) */
.win11 .dialog .body .button-ok {
    background: #005fb8;
    color: #ffffff;
    border: 1px solid transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.win11 .dialog .body .button-ok:hover {
    background: #0258a8;
}

.win11 .dialog .body .button-ok:active {
    background: #025096;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transform: translateY(1px);
}
