:root {
            --accent-color: #0078d4;
            --accent-hover: #106ebe;
            --accent-light: #0098ff;
            --bg-primary: #202020;
            --bg-secondary: #2c2c2c;
            --bg-tertiary: #383838;
            --text-primary: #ffffff;
            --text-secondary: #e0e0e0;
            --text-muted: #a0a0a0;
            --glass-bg: rgba(45, 45, 45, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-hover: rgba(255, 255, 255, 0.1);
            --taskbar-width: 60px;
            --taskbar-height: 48px;
            --titlebar-height: 32px;
            --window-radius: 8px;
            --shadow: 0 8px 24px rgba(0,0,0,0.3);
            --shadow-elevated: 0 16px 48px rgba(0,0,0,0.4);
        }
        [data-theme="light"] {
            --bg-primary: #f3f3f3;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f0f0f0;
            --text-primary: #000000;
            --text-secondary: #333333;
            --text-muted: #666666;
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(0, 0, 0, 0.1);
            --glass-hover: rgba(0, 0, 0, 0.05);
            --shadow: 0 8px 24px rgba(0,0,0,0.15);
            --shadow-elevated: 0 16px 48px rgba(0,0,0,0.2);
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow: hidden;
            height: 100vh;
            user-select: none;
            transition: all 0.3s ease;
            cursor: inherit !important;
        }

        /* Ensure mouse cursor consistency across the site */
        *, *::before, *::after {
            cursor: auto;
        }

.watermark {
  position: fixed;
  /* নিচে taskbar এর height এর ঠিক উপরে */
  bottom: calc(var(--taskbar-height) + 10px);
  right: 100px;
  font-size: 12px;
  font-weight: 500;
  margin: 30px;
  color: rgba(255,255,255,0.5);
  pointer-events: none; /* পরের ইনটের্যাকশন এর মধ্যে বাধা না দেবে */
  user-select: none;
  z-index: 9999999999 !important; /* উপরে দেখাবে */
}
[data-theme="light"] .watermark {
  color: rgba(0,0,0,0.4);
}

 .ad-container {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 120px);
  right: 25px;
  width: 300px;
  z-index: 2000;
  max-height: calc(100vh - var(--taskbar-height) - 140px);
  overflow-y: auto;
}

 .ad-container > div {
  position: relative; 
}
        
.ad-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.close-btn {
  position: sticky; 
  top: 3px;
  right: 5px;
  float: right;
  margin-bottom: -24px; 
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  text-align: center;
  line-height: 20px;
  z-index: 99;
}

.datetime-container {
  position: relative; /* badge absolute positioning এর জন্য */
}

.notif-badge {
  position: absolute;
  top: -3px;       /* date এর উপর একটু উপরে */
  left: -2px;      /* বামে সামান্য স্থান */
  background: #e81123;  /* লাল */
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  display: none;     /* ডিফল্টে লুকিয়ে থাকবে */
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
  z-index: 1002;
}

#robotOverlay {
  position: fixed !important;
  top: 0; left: 0; width: 100vw; height: 100vh;
  display: none;  
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.85) !important;
  z-index: 9999 ;
}
        
dialog#robotOverlay {
  border: none;
  padding: 0;
}

dialog#robotOverlay[open] {
  display: flex ;
}

#robotBox {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px;
  padding: 24px;
  display: flex;
}

#robotBox .cancel-button {
    margin-left: 10px;
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
#robotBox .cancel-button:hover {
    background: #5a6268;
}

#robotBox button {
  background: var(--green-color) !important;
  color: #fff !important;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
#robotBox button:hover {
  background: var(--accent-hover) !important;
}

 .watermarkAnim {
    width: 100vw;
    height: 100vh;
}

.window .context-menu {
    position: absolute; 
    z-index: 50;
}

.desktop-icon.loading {
    opacity: 0.6;
    cursor: wait;
}

.desktop-icon.loading .icon-wrapper {
    color: white;
}

.desktop-icon.loading .placeholder-text {
    color: #ccc;
    font-size: 10px;
}

.app-icon-img.android-icon {
    border-radius: 8px; 
    object-fit: cover; 
}

.app-mode {
    --taskbar-width: 56px;
    --taskbar-height: 100vh;
}

.app-mode .taskbar {
    top: 0; left: 0; bottom: auto; right: auto;
    width: var(--taskbar-width);
    height: 100vh;
    flex-direction: column;
    padding: 8px 0;
    border-right: 1px solid var(--glass-border);
    border-bottom: none;
    z-index: 3000;
}
.app-mode .desktop {
    top: 0;
    left: var(--taskbar-width);
    width: calc(100vw - var(--taskbar-width));
    height: 100vh;
}

.app-mode .window.maximized {
    top: 0 !important;
    left: 0 !important; 
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

.app-mode .taskbar-items {
    order: 2;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    gap: 8px;
}
.app-mode .system-tray {
    order: 1; 
    flex-direction: column;
    width: 100%; margin: 0; gap: 8px;
}
.app-mode .start-button {
    order: 3; 
    margin: 10px auto;
}

.app-mode .start-menu {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);

    width: 90vw; max-width: 550px;
    height: 75vh; max-height: 650px;
    border-radius: 12px;
    
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s 0.2s;
    z-index: 4000;
}
.app-mode .start-menu[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s 0s;
}

.app-mode .hidden-icons-panel,
.app-mode .volume-control,
.app-mode #taskbarContextMenu {
    left: calc(var(--taskbar-width) + 10px) !important;
    top: 20px !important; 
    bottom: auto !important; right: auto !important;
}

.app-mode .taskbar-item.active::after {
    left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 24px; border-radius: 2px;
}

.app-mode .system-tray .datetime-container {
    padding: 8px 4px; display: flex; flex-direction: column; gap: 8px;
}
.app-mode .system-tray .date,
.app-mode .system-tray .clock {
    writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
}

.app-mode .watermark {
    bottom: 10px; right: 10px; left: auto; top: auto;
}
.app-mode .ad-container {
    top: 20px; right: 20px;
    bottom: auto;
    max-height: calc(100vh - 40px);
}

.app-mode .taskbar-item span {
    display: none;
}

.app-mode .taskbar-search {
    display: none;
}

        .desktop {
            width: 100%;
            height: calc(100vh - var(--taskbar-height));
            position: relative;
            overflow: hidden;
        }
        
        .desktop-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: blur(1px) brightness(0.8);
            transition: background-image 2s ease-in-out;
            transform: scale(1.02);
        }
        
        .desktop-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
            z-index: 1;
        }
        
        /* Enhanced Taskbar */
        .taskbar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: var(--taskbar-height);
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(180%);
            border-top: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            padding: 0 8px;
            z-index: 1000;
            box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
            opacity: 0;
            transform: translateY(100%);
            pointer-events: none;
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }

        .taskbar.loaded {
         opacity: 1;
         transform: translateY(0);
         pointer-events: auto;
        }
        
        .start-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 36px;
            border-radius: 4px;
            background: transparent;
            border: none;
            cursor: pointer;
            margin-right: 8px;
            transition: all 0.2s ease;
            color: var(--text-primary);
            font-size: 20px;
        }
        
        .start-button:hover {
            background: var(--glass-hover);
        }
        
        .start-button.active {
            background: var(--glass-hover);
        }
        
        .taskbar-search {
            display: flex;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 8px 16px;
            margin-right: 8px;
            min-width: 240px;
            transition: all 0.2s ease;
            position: relative;
        }
        
        .taskbar-search:focus-within {
            background: var(--bg-secondary);
            border-color: var(--accent-color);
            box-shadow: 0 0 0 1px var(--accent-color);
        }
        
        .taskbar-search i {
            color: var(--text-muted);
            margin-right: 8px;
            font-size: 14px;
        }
        
        .taskbar-search input {
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 14px;
            width: 100%;
        }
        
        .taskbar-search input::placeholder {
            color: var(--text-muted);
        }
        .search-results {
            position: absolute;
            bottom: 110%; /* Changed from top: 100% */
            left: 0;
            width: 350px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            margin-bottom: 4px; /* Changed from margin-top */
            max-height: 300px;
            overflow-y: auto;
            display: none;
            z-index: 2000;
            box-shadow: var(--shadow);
        }
        .search-result-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .search-result-item:hover {
            background: var(--glass-hover);
        }
        .search-result-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            font-size: 16px;
            color: white;
        }
        
        .taskbar-items {
            display: flex;
            align-items: center;
            gap: 2px;
            flex: 1;
            overflow-x: auto;
            padding: 0 8px;
        }
        
        .taskbar-item {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 48px;
            height: 36px;
            padding: 0 12px;
            border-radius: 4px;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            color: var(--text-primary);
        }
        
        .taskbar-item:hover {
            background: var(--glass-hover);
        }
        
        .taskbar-item.active {
            background: var(--glass-hover);
        }
        
        .taskbar-item.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 2px;
            background: var(--accent-color);
            border-radius: 1px;
        }

        /* Hidden Icons Panel Styling */
.hidden-icons-panel {
    position: absolute;
    bottom: calc(var(--taskbar-height) + 8px); /* টাস্কবারের ঠিক উপরে */
    right: 120px; /* আপনার সিস্টেম ট্রে আইকনের পজিশন অনুযায়ী মান পরিবর্তন করুন */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 4px;
    z-index: 3100;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden-icons-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
        
        .taskbar-item.minimized {
            opacity: 0.6;
        }
        
        .taskbar-item.minimized::after {
            height: 2px;
            background: var(--text-muted);
        }
        .taskbar-item span {
            margin-left: 6px;
            font-size: 13px;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .system-tray {
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
        }
        
        .system-tray-item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-primary);
            font-size: 14px;
            position: relative;
        }
        
        .system-tray-item:hover {
            background: var(--glass-hover);
        }
        
        .system-tray-item.active {
            background: var(--glass-hover);
        }
        
        .datetime-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4px 8px;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .datetime-container:hover {
            background: var(--glass-hover);
        }
        
        .clock {
            font-size: 13px;
            font-weight: 400;
            line-height: 1;
        }
        
        .date {
            font-size: 11px;
            opacity: 0.8;
            line-height: 1;
        }
        /* Notification Panel */
        .notification-panel {
            position: fixed;
            right: -350px;
            top: 0;
            width: 350px;
            height: 100vh;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-left: 1px solid var(--glass-border);
            z-index: 3000;
            transition: right 0.3s ease;
            display: flex;
            flex-direction: column;
            box-shadow: -8px 0 24px rgba(0,0,0,0.3);
        }
        .notification-panel.open {
            right: 0;
        }
        .notification-panel-header {
            padding: 20px;
            border-bottom: 1px solid var(--glass-border);
        }
        .notification-panel-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .quick-actions {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }
        .quick-action {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: var(--bg-secondary);
        }
        .quick-action:hover {
            background: var(--glass-hover);
        }
        .quick-action i {
            font-size: 16px;
            margin-bottom: 4px;
        }
        .quick-action span {
            font-size: 10px;
            text-align: center;
        }
        /* Volume Control */
        .volume-control {
            position: absolute;
            bottom: calc(var(--taskbar-height) + 8px);
            right: 20px;
            width: 250px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            padding: 16px;
            box-shadow: var(--shadow);
            display: none;
            z-index: 3100;
        }
        .volume-slider {
            width: 100%;
            margin: 8px 0;
        }
        .volume-slider input[type="range"] {
            width: 100%;
            height: 4px;
            border-radius: 2px;
            background: var(--glass-border);
            outline: none;
            -webkit-appearance: none;
        }
        .volume-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--accent-color);
            cursor: pointer;
        }
        
        /* Start Menu */
        .start-menu {
            position: absolute;
            bottom: var(--taskbar-height);
            left: 8px;
            width: 600px;
            height: 660px;
            max-height: calc(100vh - var(--taskbar-height) - 20px);
            background: var(--glass-bg);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            box-shadow: var(--shadow-elevated);
            display: none;
            flex-direction: column;
            z-index: 3000;
            overflow: hidden;
        }
        
        .start-menu-header {
            /*flex-shrink: 0;*/
            padding: 24px 24px 16px;
            border-bottom: 1px solid var(--glass-border);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.2s ease;
            margin-bottom: 16px;
        }
        
        .user-info:hover {
            background: var(--glass-hover);
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            margin-right: 12px;
        }
        
        .user-details h3 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .user-details p {
            font-size: 12px;
            color: var(--text-muted);
        }
        
        .power-options {
            display: flex;
            gap: 8px;
        }
        
        .power-button {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            background: transparent;
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-primary);
        }
        
        .power-button:hover {
            background: var(--glass-hover);
            border-color: var(--accent-color);
        }
        
        .search-container {
            padding: 0 24px 20px;
        }
        
        .search-box {
            display: flex;
            align-items: center;
            background: var(--bg-secondary);
            border: 1px solid var(--glass-border);
            border-radius: 6px;
            padding: 12px 16px;
            transition: all 0.2s ease;
        }
        
        .search-box:focus-within {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 1px var(--accent-color);
        }
        
        .search-box i {
            color: var(--text-muted);
            margin-right: 12px;
        }
        
        .search-box input {
            background: transparent;
            border: none;
            outline: none;
            color: var(--text-primary);
            font-size: 14px;
            width: 100%;
        }
        
        .search-box input::placeholder {
            color: var(--text-muted);
        }
        
        .start-menu-content-simplified {
    flex: 1; 
                min-height: 0;
    overflow-y: auto;
    padding: 20px; 
}

#allAppsGridSimplified {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 16px;
}
        
        .section-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 12px;
            margin-top: 16px;
        }
        
        .section-title:first-child {
            margin-top: 0;
        }
        
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 8px;
            margin-bottom: 24px;
        }
        
        .app-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: transparent;
            text-align: center;
        }
        
        .app-tile:hover {
            background: var(--glass-hover);
        }
        
        .app-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
            font-size: 18px;
            color: white;
        }
        
        .app-name {
            font-size: 11px;
            font-weight: 500;
            color: var(--text-primary);
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        
/* এটি আইকন কন্টেইনারকে সাইজ দেওয়ার জন্য */
.icon-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ডেস্কটপ আইকনের জন্য কন্টেইনার */
.desktop-icon .icon-wrapper {
    width: 50px;  
    height: 50px;
    font-size: 28px; 
    margin-bottom: 5px;
    flex-shrink: 0;
}

.desktop-icon .app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ছবিটি যাতে ঠিকমতো দেখা যায় */
}

/* app-tile (Start Menu-তে)-এর জন্য কন্টেইনার */
.app-tile .app-icon {
    font-size: 18px; /* Font Awesome আইকনের জন্য সাইজ */
}

/* ইমেজ আইকনগুলির জন্য স্টাইল */
.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ছবিটি যাতে কেটে না যায় */
    border-radius: 4px; /* ছবির কোণাগুলো একটু গোল করতে */
}
        
        .recent-files {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .recent-file {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .recent-file:hover {
            background: var(--glass-hover);
        }
        
        .file-icon {
            width: 32px;
            height: 32px;
            background: var(--accent-color);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            color: white;
            font-size: 14px;
        }
        
        .file-info h4 {
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 2px;
        }
        
        .file-info p {
            font-size: 11px;
            color: var(--text-muted);
        }
        
        /* Desktop Icons */
        .desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 15px;
    overflow-y: auto;
    z-index: 2;
}
        
        .desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 90px;
    height: 100px;
    height: auto; 
}
        
        .desktop-icon:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .desktop-icon:active {
            background: rgba(255, 255, 255, 0.2);
        }
        .desktop-icon.selected {
            background: rgba(0, 120, 212, 0.3);
            border: 1px solid var(--accent-color);
        }
        
        .desktop-icon i {
            font-size: 32px;
            color: white;
            margin-bottom: 8px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }
        
        .desktop-icon span {
    font-size: 11px;
    white-space: normal;
    word-break: break-word;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: calc(1.3em * 2);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
        
        /* Window System */
        .window-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 100;
        }
        
        .window {
            touch-action: none;
            -webkit-user-select: none;
            user-select: none;
            cursor: move; /* Desktop এ cursor স্টাইল */
            position: absolute;
            background: var(--bg-secondary);
            border: 1px solid var(--glass-border);
            border-radius: var(--window-radius);
            box-shadow: var(--shadow-elevated);
            overflow: hidden;
            pointer-events: auto;
            display: flex;
            flex-direction: column;
            min-width: 320px;
            min-height: 240px;
            backdrop-filter: blur(20px);
            /* Removed resize: both and using specific transitions for performance */
            transition: transform 0.3s ease, opacity 0.3s ease, width 0.2s ease, height 0.2s ease, top 0.2s ease, left 0.2s ease;
            contain: layout style paint;
            isolation: isolate;
        }
        
        .window.maximized {
            border-radius: 0;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: calc(100vh - var(--taskbar-height)) !important;
            resize: none;
        }
        .window.minimized {
            transform: scale(0.8) translateY(100px);
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
        }
        
        .window-titlebar {
            height: var(--titlebar-height);
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            padding: 0 4px 0 16px;
            cursor: move;
            user-select: none;
            flex-shrink: 0;
        }
        
        .window-title {
            display: flex;
            align-items: center;
            flex: 1;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .window-title i {
            margin-right: 8px;
            font-size: 14px;
        }
        
        .window-controls {
            display: flex;
            gap: 1px;
        }
        
        .window-control {
            width: 46px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 10px;
            color: var(--text-primary);
        }
        
        .window-control:hover {
            background: var(--glass-hover);
        }
        
        .window-minimize:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .window-maximize:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .window-close:hover {
            background: #e74c3c;
            color: white;
        }
        
        .window-content {
            display: flex; 
            flex-direction: column;
            flex: 1;
            background: var(--bg-primary);
            overflow: auto;
            overflow-x: auto;
            overflow-y: auto;
            position: relative;
            -webkit-overflow-scrolling: touch;
            contain: layout style paint;
            isolation: isolate;
            cursor: default !important; 
        }

.window-content > iframe {
    flex-grow: 1; 
}

.iframe-warning-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 235, 238, 0.9); 
    color: #212121; 
    font-size: 12px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    flex-shrink: 0; 
}

.iframe-warning-panel .warning-icon {
    color: #c0392b; 
}
.iframe-warning-panel .warning-text strong {
    font-weight: 700;
}
.iframe-warning-panel .open-external-btn {
    margin-left: auto; 
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.iframe-warning-panel .open-external-btn:hover {
    background-color: #c0392b;
}

   .ad-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
    isolation: isolate; 
    }
        

        .content-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  background: white;
  all: initial;
  font-family: Arial, sans-serif;
  cursor: default !important; /* Ensure content has default cursor */
}

.sandboxed-content {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  z-index: 0;
}
        /* Strict isolation for window content - prevent cursor interference */
        .sandboxed-content * {
            cursor: inherit !important;
        }

        .sandboxed-content a, .sandboxed-content button, 
        .sandboxed-content input[type="button"], .sandboxed-content input[type="submit"] {
            cursor: pointer !important;
        }

        .sandboxed-content input, .sandboxed-content textarea {
            cursor: text !important;
        }

/* Ensure ads stay inside window */
.window-content .ad-container {
  position: absolute !important;
  bottom: 10px !important;
  right: 10px !important;
  width: 250px !important;
  max-width: calc(100% - 20px) !important;
  z-index: 999 !important;
  contain: layout style paint;
}
        
        .window-content iframe {
            display: block;
            width: 100%;
            height: 100%;
            border: none;
            min-height: 100%;
            background: var(--bg-primary);
        }
        .window-resize-handle {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 20px;
            height: 20px;
            background: rgba(255,255,255,0.1);
            cursor: se-resize;
            z-index: 1000;
            touch-action: none;
        }
        .window-resize-handle:hover {
            background: linear-gradient(135deg, transparent 40%, var(--glass-border) 50%, transparent 60%);
        }
        
        /* Context Menu */
        .context-menu {
            position: fixed;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 6px;
            box-shadow: var(--shadow);
            padding: 4px 0;
            min-width: 200px;
            z-index: 4000;
            display: none;
        }
        
        .context-item {
            display: flex;
            align-items: center;
            padding: 8px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-primary);
            font-size: 13px;
        }
        
        .context-item:hover {
            background: var(--glass-hover);
        }
        
        .context-item i {
            margin-right: 12px;
            width: 16px;
            text-align: center;
        }
        
        .context-divider {
            height: 1px;
            background: var(--glass-border);
            margin: 4px 8px;
        }
        
        /* Notifications */
        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999999999 !important;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 300px;
        }
        
        .notification {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 6px;
            padding: 16px;
            box-shadow: var(--shadow);
            transform: translateX(120%);
           /* transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);*/
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
            cursor: pointer;
            pointer-events: auto;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .notification-title {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        
        .notification-text {
            font-size: 12px;
            color: var(--text-secondary);
        }
.notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

.notification-close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close-btn:hover {
    opacity: 1;
}

.notification .notification-content {
    padding-right: 25px;
}
        .notification-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  border-top: 1px solid var(--glass-border);
}

.notification-list-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.notification-list-item:hover {
  background: var(--glass-hover);
}

.notification-list-item .notification-icon {
  font-size: 16px;
  margin-right: 12px;
}

.notification-list-item .notification-content {
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}


        /* Modals */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 3000;
        }
        
        .modal {
            background: var(--bg-secondary);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            box-shadow: var(--shadow-elevated);
            max-width: 90%;
            max-height: 90%;
            overflow: hidden;
            backdrop-filter: blur(20px);
        }
        
        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .modal-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }
        
        .modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: all 0.2s ease;
        }
        
        .modal-close:hover {
            background: var(--glass-hover);
        }
        
        .modal-body {
            padding: 24px;
            overflow-y: auto;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .start-menu {
                width: calc(100vw - 16px);
                height: calc(100vh - var(--taskbar-height) - 16px);
                left: 8px;
                right: 8px;
            }
            
            .taskbar-search {
                display: none;
            }
            
            .taskbar-item span {
                display: none;
            }
            
            .apps-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .desktop-icons .desktop-icon {
                width: 80px;
                height: 70px;
            }
            
            .notification-panel {
                width: 100%;
                right: -100%;
            }
        }
        
        @media (max-width: 480px) {
            .desktop-icons .desktop-icon {
                width: 80px;
                height: 70px;
            }
            
            .apps-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .taskbar {
                padding: 0 4px;
            }
        }
        
        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--glass-border);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }
        
        /* Animations */
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        .animate-slide-up {
            animation: slideUp 0.3s ease;
        }
        
        .animate-fade-in {
            animation: fadeIn 0.3s ease;
        }
