body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.menu-bar {
    position: relative; 
    overflow: hidden;
    height: 30px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    border-bottom: solid 1px rgba(255, 255, 255, .5);
    box-shadow: 0 -1px 0 0 #00506b;
    z-index: 0;
}

.menu-bar > p {
    position: relative;
    z-index: 10;
    color: white;
    font-size: 14px;
    margin: 0;
    padding: 0 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.taskbar-bo{
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background-color: rgba(220, 240, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.taskbar-bo:after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    background: 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(179, 192, 204, 0.2) 30%, #0000 30%),
        linear-gradient(to top, rgba(158, 173, 188, 0.4) 0%, rgba(255, 255, 255, 0.15) 100%);
}

#taskbar-items-container {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: solid 1px rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 0 0 #00506b inset;
    z-index: 10000;
    overflow: hidden;
}

.taskbar-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    gap: 8px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: all 0.1s ease;
}

.taskbar-item {
    min-width: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.taskbar-item:hover {
    border: 1px solid rgba(135, 206, 250, 0.7);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(135, 206, 250, 0.2) 100%);
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.5);
}

.taskbar-item.expanded {
    min-width: 140px;
    justify-content: flex-start;
}

.taskbar-item.active {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(175, 215, 255, 0.25) 50%,
        rgba(120, 185, 245, 0.4) 51%,
        rgba(160, 210, 255, 0.45) 100%
    );
    border: 1px solid rgba(135, 210, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 10px rgba(255,255,255,0.4);
}

.taskbar-item img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.menu-bar-bo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; 
}

.menu-bar-bo:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.blur-overlay {
    background-color: rgba(220, 240, 255, 0.25); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blur-overlay:after {
    background: 
        linear-gradient(to bottom, #0000 2px, rgba(201, 208, 217, 0.4) 2px, rgba(179, 192, 204, 0.4) 30%, #0000 30%),	
        linear-gradient(to bottom in oklch, rgba(158, 173, 188, 0.4) 60%, rgba(255, 255, 255, 0.25));
}

.desktopApp {
    display: block;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    text-align: center;
    padding: 2px 15px 0px 15px;
    margin: 7px 1px 15px 1px;
    width: 84px;
    
    box-sizing: border-box;
}

.desktopApp:hover {
    border: 1px solid rgba(135, 206, 250, 0.8);
    background: linear-gradient(
        to bottom,
        rgba(193, 230, 255, 0.5) 0%, 
        rgba(135, 206, 250, 0.3) 100%
    );
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.6);
}

.desktopApp p {
    margin: 0px;
    color: #fff;
    /*text-shadow: 0px 1px 3px rgba(0, 0, 0, 1);*/
    color: #fff; 
    text-shadow: 1px 0px 2px rgba(0, 0, 0, 0.7);
    font-weight: 350;
    font-size: 12px;
    line-height: 1.3;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Truncate with dots if it goes past line 2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.desktopApp img {
    width: 52px; 
    height: 52px; 
    /*border-radius: 16px;*/
}

.dragable-holder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 26px;
    cursor: move; 
    padding: 0 2px;
}

.aero-title {
    font-size: 12px;
    color: #1a2536;
    text-shadow: 0 0 6px #fff, 0 0 10px #fff;
    font-weight: 500;
}

.aero-controls {
    display: flex;
    gap: 1px;
}

.control-btn {
    position: relative;
    width: 28px;
    height: 17px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 49%, rgba(0,0,0,0.02) 50%, rgba(255,255,255,0.1) 100%);
}

.control-btn:hover {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 49%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.4) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.5);
}

.min::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 9px;
    width: 8px;
    height: 2px;
    background: #444;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.max::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 9px;
    width: 7px;
    height: 6px;
    border: 1px solid #444;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.control-btn.close {
    width: 44px; 
    border-color: rgba(140, 40, 40, 0.5);
    background: linear-gradient(to bottom, rgba(240, 110, 110, 0.4) 0%, rgba(210, 60, 60, 0.3) 49%, rgba(180, 20, 20, 0.4) 50%, rgba(200, 40, 40, 0.5) 100%);
}

.control-btn.close:hover {
    border-color: rgba(100, 10, 10, 0.8);
    background: linear-gradient(to bottom, #ffa0a0 0%, #f04040 49%, #cc0000 50%, #e61a1a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 8px rgba(230, 26, 26, 0.6);
}

.close::before, .close::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 21px;
    width: 2px;
    height: 8px;
    background: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
.close::before { transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }


.window-body {
    flex: 1;    
    display: flex;
    flex-direction: column; 
    overflow: auto;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 7px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.window-main {
    display: flex;
    flex-direction: row; 
    flex: 1;            
    overflow: hidden;
}


.aero-banner {
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 5px;
    padding: 12px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    background: linear-gradient(to bottom, #4ecce0 0%, #1baac4 49.9%, #007999 50%, #005a73 100%);
}

.aero-banner h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

[contenteditable="true"] {
    outline: none;
}

#note-app-Content {
    min-height: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.window-content {
    padding: 20px 10px 10px 10px;
    flex: 1;
    overflow-y: auto;
}

.window-content p {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.window-bar-right {
    flex-shrink: 0;
    height: 100%;
    background: rgba(242, 247, 252, 0.7);
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.7);
    padding: 12px;
    box-sizing: border-box;
    overflow-y: auto; 
}

.window-bar-left {
    flex-shrink: 0; 
    height: 100%;
    background: rgba(242, 247, 252, 0.7); 
    border-right: 1px solid rgba(0, 0, 0, 0.15); 
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.7);
    padding: 12px;
    box-sizing: border-box;
    overflow-y: auto;  
}

.window-topbar {
    flex-shrink: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 5px 2px 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.menu-item {
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 11px;
    color: #1e293b;
    cursor: pointer;
    
    padding: 3px 7px;
    margin: 0 1px;
    display: inline-block;
    border-radius: 3px;
    box-sizing: border-box;
    
    text-shadow: 0 0 6px rgba(255, 255, 255, 1), 0 0 12px rgba(255, 255, 255, 0.8);
    transition: background-color 0.08s, border-color 0.08s;
}

.menu-item:hover {
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.65) 0%, 
        rgba(235, 244, 255, 0.35) 45%, 
        rgba(205, 225, 250, 0.4) 50%, 
        rgba(220, 238, 255, 0.55) 100%
    );
    border: 1px solid rgba(130, 190, 240, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #000000;
}

.menu-item:active {
    background: linear-gradient(
        to bottom, 
        rgba(200, 222, 245, 0.55) 0%, 
        rgba(180, 210, 240, 0.45) 100%
    );
    border: 1px solid rgba(100, 160, 220, 0.65);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.window-bottombar {
    flex-shrink: 0;
    width: 100%;
    background: rgba(235, 240, 245, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    box-sizing: border-box;
    font-size: 11px;
    color: #475569;
}

.button-group {
    display: flex;
    gap: 10px;
}

.aero-btn {
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 5px;
    color: white;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: filter 0.15s ease;
}

.aero-btn:hover { filter: brightness(1.1); }
.btn-green { background: linear-gradient(to bottom, #7fe58c 0%, #4cb85a 49.9%, #1e872c 50%, #2f9e3d 100%); }
.btn-blue { background: linear-gradient(to bottom, #5ba8df 0%, #2d7cb5 49.9%, #0c4e7d 50%, #1b6da5 100%); }
.btn-light-blue { background: min-content; background-image: radial-gradient(circle at 50% 90%, rgba(135, 220, 255, 0.9) 0%, rgba(30, 125, 220, 0.9) 45%, rgba(3, 75, 160, 0.9) 70%), linear-gradient(to bottom, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.3) 44%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 100%); border: 1px solid #1a3e5c; box-shadow: inset 0 0 2px 1px rgba(255, 255, 255, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3); }


.window {
    display:flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 550px;
    padding: 4px 8px 8px 8px; 
    box-sizing: border-box;
    
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.45) 0%, rgba(185, 215, 240, 0.3) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35), 
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
    
    font-family: 'Segoe UI', -apple-system, sans-serif;
    z-index: 999;
    user-select: none; 
}

.hoverRed:hover {
    border-color: rgba(100, 10, 10, 0.8);
    background: linear-gradient(to bottom, #ffa0a0 0%, #f04040 49%, #cc0000 50%, #e61a1a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 8px rgba(230, 26, 26, 0.6);
}

.welcome {
    width: 300px;
}

.notepad {
    width: 670px;
    height: 440px;
}

.settings {
    width: 620px;
    height: 400px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #1e293b;
    border: 1px solid transparent;
    transition: all 0.08s ease;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.settings-nav-item.active {
    background: linear-gradient(to right, rgba(200, 225, 250, 0.7) 0%, rgba(225, 240, 255, 0.4) 100%);
    border: 1px solid rgba(150, 190, 230, 0.6);
    font-weight: 500;
}

.toggleSwitch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 28px;
    transform: scale(var(--scale, 1));
    transform-origin: left center;
}

.toggleSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggleSwitch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #cfd8e1 0%, #eef3f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.toggleSwitch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.75) 0%, 
        rgba(255,255,255,0.25) 49.9%, 
        rgba(240,245,250,0.05) 50%, 
        rgba(220,232,245,0.4) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.15s;
}

.toggleSwitch:hover .toggleSwitch-slider:before {
    border-color: rgba(30, 144, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 6px rgba(30, 144, 255, 0.6);
}

input:checked + .toggleSwitch-slider {
    background: linear-gradient(
        to bottom, 
        #59bfff 0%, 
        #33a5f7 49.9%, 
        #1382de 50%, 
        #0b6bc2 100%
    );
    border-color: rgba(11, 80, 150, 0.6);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 
                inset 0 -2px 4px rgba(50, 240, 255, 0.6), 
                0 1px 0 rgba(255, 255, 255, 0.4);
}

input:focus + .toggleSwitch-slider {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.18), 0 0 6px rgba(30, 144, 255, 0.8);
}

input:checked + .toggleSwitch-slider:before {
    transform: translateX(30px);
    background: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.85) 0%, 
        rgba(255,255,255,0.35) 49.9%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.45) 100%
    );
    border-color: rgba(255, 255, 255, 0.6);
}

.toggleSwitch-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 8px;
}

.toggleSwitch-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #1a2536;
    text-shadow: 0 0 6px #fff;
    user-select: none;
}