:root {
    --bg-primary: #1e1e1e;
    --accent-color: #0078d7;
    --taskbar-bg: rgba(16, 16, 16, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --window-bg: #1e1e1e;
    --window-header: #2d2d2d;
    --sidebar-bg: #1e1e1e;
    --border-color: #333;
}

[data-theme="light"] {
    --bg-primary: #f0f0f0;
    --taskbar-bg: rgba(240, 240, 240, 0.9);
    --text-primary: #000000;
    --text-secondary: #444444;
    --hover-bg: rgba(0, 0, 0, 0.1);
    --window-bg: #ffffff;
    --window-header: #e0e0e0;
    --sidebar-bg: #f9f9f9;
    --border-color: #ccc;
    color: black;
}

/* Cursor Styles */
.cursor-black {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="black" stroke="white" stroke-width="1"><path d="M5.5 3.5l12 11.5l-5.5 1.5l3.5 5.5l-2.5 1.5l-3.5-5.5l-3 3z"/></svg>') 0 0, auto !important;
}

.cursor-black * {
    cursor: inherit !important;
}

body {
    cursor: default;
    /* Default white arrow usually handled by OS or browser, we can enforce if needed later */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* OS Wrapper - Default maintains 16:9 aspect ratio */
.os-wrapper {
    position: relative;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    max-height: 100vh;
    max-width: 177.78vh;
    /* 16:9 ratio */
    background: black;
    overflow: hidden;
    /* Smooth morph animation when changing aspect ratio */
    transition: width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
        height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
        max-width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
        max-height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: width, height, max-width, max-height;
}

/* Aspect Ratio Modes */
.os-wrapper.aspect-fill {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.os-wrapper.aspect-16-9 {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 */
    max-height: 100vh;
    max-width: 177.78vh;
    /* 16:9 */
}

.os-wrapper.aspect-4-3 {
    width: 100vw;
    height: 75vw;
    /* 4:3 */
    max-height: 100vh;
    max-width: 133.33vh;
    /* 4:3 */
}

.os-wrapper.aspect-custom {
    --custom-width: 16;
    --custom-height: 9;
    width: 100vw;
    height: calc(100vw * var(--custom-height) / var(--custom-width));
    max-height: 100vh;
    max-width: calc(100vh * var(--custom-width) / var(--custom-height));
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.hidden {
    display: none !important;
}

/* --- Startup Screen --- */
#startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.startup-content {
    text-align: center;
}

.boot-logo-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Windows 10 Boot Spinner style */
.loader-container {
    width: 40px;
    height: 40px;
    margin: 30px auto 20px;
    position: relative;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.loader-bar {
    display: none;
    /* Hide the bar from old style */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.startup-status {
    display: none;
    /* Clean look */
}


/* --- Welcome Screen --- */
#welcome-screen {
    width: 100%;
    height: 100%;
    background: url('../assets/welcome_bg.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.glass-card {
    /* Removed glassmorphism, used simple transparency for text readability */
    /* Or just cleaner look like Win10 Login */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.welcome-card-show {
    transform: translateY(0);
    opacity: 1;
}

.user-avatar {
    width: 150px;
    height: 150px;
    /* Remove circle bg */
    background: transparent;
    border-radius: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.user-name {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    padding: 8px 30px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Desktop --- */
#desktop {
    width: 100%;
    height: 100%;
    background: url('../assets/desktop_bg.jpg') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.desktop-icons {
    position: absolute;
    top: 36px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    /* Flex removed for grid system */
    display: block;
}

.icon-item {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
    cursor: default;
    border: 1px solid transparent;
    position: absolute;
    /* Enable Dragging */
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-bg {
    /* No backgrounds for icons, just the icon itself */
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    background: none !important;
    box-shadow: none !important;
    /* Generic shadowing for visibility on random bgs */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Specific colors for icons themselves now */
.color-blue .fa-folder-open {
    color: #fce100;
    /* Windows folder yellow */
}

.color-green .fa-chrome {
    color: #ffffff;
    /* Override */
}

/* Let chrome be chrome color if possible, or white simple */
.color-purple .fa-terminal {
    color: #ffffff;
}

.color-orange .fa-music {
    color: #ff5c5c;
}

.color-grey .fa-gear {
    color: #dddddd;
}

.icon-item span {
    font-size: 0.75rem;
    text-align: center;
    color: white;
    text-shadow: 0 1px 2px black;
    margin-top: 5px;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- macOS Top Bar --- */
.macos-topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 2000;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.apple-logo {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.topbar-logo-img {
    height: 11px;
    /* Fit in 32px bar nicely */
    width: auto;
    object-fit: contain;
}

.app-name {
    font-weight: 700;
}

.topbar-menu {
    display: flex;
    list-style: none;
    gap: 15px;
}

.topbar-menu li {
    font-weight: 400;
    cursor: default;
    opacity: 0.9;
}

.topbar-menu li:hover {
    opacity: 1;
}

.status-icon {
    font-size: 1rem;
    cursor: pointer;
}

.clock-mac {
    font-weight: 500;
    margin-left: 5px;
    font-size: 0.9rem;
}

#time-mac {
    margin-left: 5px;
}

/* --- macOS Dock --- */
.macos-dock-container {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
}

.macos-dock {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: width 0.3s;
}

.dock-item {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* App Gradients */
.dock-item[title="Finder"] {
    background: linear-gradient(to bottom, #1e88e5, #1565c0);
}

.dock-item[title="Launchpad"] {
    background: linear-gradient(to bottom, #90a4ae, #546e7a);
}

.dock-item[title="Safari"] {
    background: white;
    color: #039be5;
}

.dock-item[title="Messages"] {
    background: #4caf50;
}

.dock-item[title="Mail"] {
    background: linear-gradient(to bottom, #42a5f5, #1976d2);
}

.dock-item[title="Maps"] {
    background: linear-gradient(to bottom, #ffa726, #f57c00);
}

.dock-item[title="Photos"] {
    background: white;
    color: #e91e63;
}

.dock-item[title="Settings"] {
    background: linear-gradient(to bottom, #78909c, #455a64);
}

.dock-item[title="Terminal"] {
    background: #263238;
    border: 1px solid #455a64;
}

.dock-item[title="Bin"] {
    background: transparent;
    color: #cfd8dc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dock-item:hover {
    transform: translateY(-15px) scale(1.15);
    margin: 0 10px;
    z-index: 10;
}

.dock-separator {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.dock-item::after {
    content: attr(title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item:hover::after {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ... Existing Styles ... */

/* --- Window System --- */

/* Window States & Animations */
.window {
    /* ... existing props ... */
    position: absolute;
    /* Remove center centering by default so we can control via JS top/left */
    /* top: 50%; left: 50%; transform: translate(-50%, -50%); <- Moving to JS init */
    min-width: 400px;
    min-height: 300px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.2s ease,
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.window.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.window.minimized {
    transform: scale(0) translateY(200px);
    /* Suck into dock effect simulated */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.window.maximized {
    top: 32px !important;
    /* Below Top Bar */
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 32px - 80px) !important;
    /* Top bar + Dock space approx */
    transform: none !important;
    border-radius: 0;
    resize: none;
}

.window.dragging {
    transition: none !important;
    /* vital for smooth drag */
    opacity: 0.95;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    /* Helps with iframe/selection issues if any */
}

.window.dragging .window-header {
    cursor: grabbing;
}

.window.dragging * {
    pointer-events: none;
}

/* Window while resizing */
.window.resizing {
    transition: none !important;
    user-select: none;
}

/* Ensure controls are on the right */
.window-header {
    display: flex;
    justify-content: space-between;
    /* Title left, controls right */
    background: var(--window-header);
    height: 36px;
    padding-left: 10px;
    cursor: grab;
}

/* Dock indicator for open apps */
.dock-item.running::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
}

/* Tooltip stays on ::after as defined earlier in file */

/* Override resize handle to look better if possible */
.window::-webkit-resizer {
    background: transparent;
}

/* Window Resize Handles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

/* Edge Handles */
.resize-handle.resize-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    cursor: ns-resize;
}

.resize-handle.resize-right {
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    cursor: ew-resize;
}

.resize-handle.resize-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    cursor: ns-resize;
}

.resize-handle.resize-left {
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    cursor: ew-resize;
}

/* Corner Handles - Larger for easier grabbing */
.resize-handle.resize-top-left {
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    cursor: nwse-resize;
}

.resize-handle.resize-top-right {
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    cursor: nesw-resize;
}

.resize-handle.resize-bottom-left {
    bottom: 0;
    left: 0;
    width: 8px;
    height: 8px;
    cursor: nesw-resize;
}

.resize-handle.resize-bottom-right {
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    cursor: nwse-resize;
}

/* Hide resize handles when maximized */
.window.maximized .resize-handle {
    display: none;
}

.window-title {
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-controls {
    display: flex;
    height: 100%;
}

.win-btn {
    width: 46px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: white;
    transition: background 0.1s;
}

.win-btn:hover {
    background: #444;
}

.win-close:hover {
    background: #e81123;
    color: white;
}

.window-body {
    flex: 1;
    background: var(--window-bg);
    color: var(--text-primary);
    display: flex;
    overflow: auto;
}

/* File Explorer Specifics */
.sidebar {
    width: 150px;
    background: var(--sidebar-bg);
    /* Slightly lighter than sidebar usually? Or same. */
    /* Slightly lighter than sidebar usually? Or same. */
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.sidebar-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #ccc;
    cursor: pointer;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: #333;
    color: white;
}

.main-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    overflow-y: auto;
}

/* Drive Item Style */
.drive-item {
    width: 260px;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 15px;
    border-radius: 4px;
    cursor: default;
    border: 1px solid transparent;
}

.drive-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drive-icon {
    font-size: 2.5rem;
    color: #ccc;
}

.drive-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.drive-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.drive-bar-bg {
    width: 100%;
    height: 12px;
    background: #444;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #555;
}

.drive-bar-fill {
    height: 100%;
    background: #0078d7;
    /* Windows Blue */
    width: 83.5%;
    /* 835GB / 1000GB approx */
}

.drive-bar-fill.high {
    background: #d9534f;
    /* Red if full */
}

.drive-details {
    font-size: 0.75rem;
    color: #aaa;
}



.file-item {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    cursor: default;
    border: 1px solid transparent;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* --- Context Menu --- */
#context-menu {
    position: absolute;
    background: #2d2d2d;
    border: 1px solid #444;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 5px 0;
    width: 200px;
    z-index: 9999;
}

.menu-item {
    padding: 8px 15px;
    font-size: 0.9rem;
    color: white;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item:hover {
    background: #444;
}


/* File Colors */
.f-blue {
    color: #fce100;
    /* Folders are yellow in Win */
}

.f-text {
    color: #ccc;
}

.f-img {
    color: #4af;
}

.file-name {
    font-size: 0.75rem;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Radio button styling for settings */
input[type="radio"] {
    cursor: pointer;
    accent-color: #0078d7;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* --- Apple Menu --- */
.apple-logo {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.apple-logo:hover {
    background: rgba(255, 255, 255, 0.1);
}

.apple-logo.active {
    background: rgba(255, 255, 255, 0.15);
}

.apple-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 5px 0;
    min-width: 250px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.apple-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.apple-menu-item {
    padding: 8px 20px;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.1s ease;
}

.apple-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.apple-menu-item i {
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.apple-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 10px;
}

/* --- About Mac Styles --- */
.about-mac-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    height: 100%;
}

/* --- System Overlays --- */
.system-sleep-overlay,
.system-restart-overlay,
.system-shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease, background 1s ease;
    color: white;
}

.sleep-content,
.restart-content,
.shutdown-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Dialog System --- */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    transition: background 0.2s ease;
    pointer-events: none;
}

.dialog-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: all;
}

.dialog-box {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    min-width: 400px;
    max-width: 500px;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: all;
}

.dialog-box.active {
    transform: scale(1);
    opacity: 1;
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 25px 15px;
    color: var(--text-primary);
}

.dialog-header i {
    font-size: 2rem;
    opacity: 0.9;
}

.dialog-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

.dialog-body {
    padding: 10px 25px 25px;
    color: var(--text-secondary);
}

.dialog-body p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px 25px;
    border-top: 1px solid var(--border-color);
}

.dialog-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 80px;
}

.dialog-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.dialog-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.dialog-btn-confirm {
    background: #0078d7;
    color: white;
}

.dialog-btn-confirm:hover {
    background: #0063b1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

.dialog-btn:active {
    transform: translateY(0);
}

/* Dialog icon colors for different types */
.dialog-header .fa-circle-question {
    color: #ffa726;
}

.dialog-header .fa-circle-info {
    color: #42a5f5;
}

.dialog-header .fa-triangle-exclamation {
    color: #ef5350;
}

.dialog-header .fa-rotate-right,
.dialog-header .fa-power-off {
    color: #ff9800;
}