* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    background: #000;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #ece9d8;
    border: 1px inset #dfdfdf;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ece9d8, #d4d0c8);
    border: 1px outset #dfdfdf;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
}

::-webkit-scrollbar-button {
    background: linear-gradient(to bottom, #ece9d8, #d4d0c8);
    border: 1px outset #dfdfdf;
    height: 16px;
    width: 16px;
}

::-webkit-scrollbar-button:hover {
    background: linear-gradient(to bottom, #f0f0f0, #d8d8d8);
}

::-webkit-scrollbar-button:vertical:start {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 4L4 8h8z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

::-webkit-scrollbar-button:vertical:end {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L4 8h8z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

::-webkit-scrollbar-button:horizontal:start {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8L8 4v8z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

::-webkit-scrollbar-button:horizontal:end {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M12 8L8 4v8z' fill='%23000'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

.monitor-container {
    width: 100vmin;
    height: 75vmin;
    max-width: 1024px;
    max-height: 768px;
    position: relative;
    background: url('https://i.imgur.com/US3OK5z.jpeg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.desktop {
    width: 100%;
    height: calc(100% - 24px);
    background: url('https://i.imgur.com/US3OK5z.jpeg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.desktop-icon {
    position: absolute;
    width: 64px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    transition: background-color 0.1s;
}

.desktop-icon:hover {
    background-color: rgba(49, 106, 197, 0.3);
    border: 1px dotted rgba(49, 106, 197, 0.8);
}

.desktop-icon.selected {
    background-color: rgba(49, 106, 197, 0.5);
    border: 1px dotted rgba(49, 106, 197, 1);
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.desktop-icon[data-app="textfile"] img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.desktop-icon span {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 11px;
    text-align: center;
    line-height: 12px;
    max-width: 100%;
    word-wrap: break-word;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(to bottom, #245edb, #1941a5);
    border-top: 1px solid #4d7bd6;
    display: flex;
    align-items: stretch;
    z-index: 1000;
}

.start-button {
    width: 90px;
    height: 100%;
    border: none !important;
    background: none !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    overflow: hidden;
    box-shadow: none !important;
}

.start-button:hover,
.start-button:active,
.start-button:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.start-button:hover {
    filter: brightness(1.1);
}

.start-button:active {
    filter: brightness(0.9);
}

.start-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.quick-launch {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2px;
}

.taskbar-content {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.taskbar-app {
    height: 20px;
    background: linear-gradient(to bottom, #3a6cf5, #2555d4);
    border: 1px outset #4d7bd6;
    color: white;
    font-size: 11px;
    padding: 0 8px;
    margin-right: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 160px;
    max-width: 200px;
}

.taskbar-app:hover {
    background: linear-gradient(to bottom, #4a7cf5, #3565e4);
}

.taskbar-app:active,
.taskbar-app.active {
    border: 1px inset #4d7bd6;
    background: linear-gradient(to bottom, #2555d4, #1941a5);
}

.taskbar-app img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.system-tray {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 2px;
    background: linear-gradient(to bottom, #0c8dea, #0b7cc5);
    border-left: 1px solid #0962a0;
}

.system-icons {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2px;
}

.system-icon {
    width: 16px;
    height: 16px;
    margin: 0 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.clock {
    color: white;
    font-size: 11px;
    font-family: "Tahoma", sans-serif;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
    padding: 0 4px;
    height: 100%;
    display: flex;
    align-items: center;
}

.window {
    position: absolute;
    z-index: 100;
    resize: none;
    overflow: hidden;
    min-width: 300px;
    min-height: 200px;
    border: 2px solid #0831d9;
    background: white;
    display: flex;
    flex-direction: column;
}

.window.hidden {
    display: none;
}

.window.active {
    z-index: 200;
}

.title-bar {
    cursor: move;
    user-select: none;
    margin: 0;
    flex-shrink: 0;
}

.title-bar.inactive {
    background: linear-gradient(90deg, #9e9e9e, #c6c6c6) !important;
}

.title-bar-text {
    display: flex;
    align-items: center;
}

.window-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.window-body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: white;
    overflow: hidden;
}

.menu-bar {
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
    padding: 4px 8px;
    display: flex;
    font-size: 11px;
    flex-shrink: 0;
    height: 24px;
    margin: 0;
    align-items: center;
}

.menu-item {
    padding: 4px 8px;
    cursor: pointer;
    user-select: none;
    font-family: "Tahoma", sans-serif;
    color: #000000;
}

.menu-item:hover {
    background: #316ac5;
    color: white;
}

.browser-toolbar {
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    height: 40px;
    font-size: 11px;
    flex-shrink: 0;
    gap: 4px;
}

.toolbar-section {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.toolbar-separator {
    width: 1px;
    height: 28px;
    background: #aca899;
    margin: 0 6px;
    flex-shrink: 0;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    padding: 4px;
    cursor: pointer;
    height: 32px;
    position: relative;
    flex-shrink: 0;
    margin: 0;
}

.toolbar-btn.icon-only {
    width: 32px;
}

.toolbar-btn:hover {
    background: #ffffff;
    border: 1px solid #316ac5;
}

.toolbar-btn:active {
    background: #e6f3ff;
    border: 1px solid #316ac5;
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: default;
    background: transparent;
}

.toolbar-btn:disabled:hover {
    background: transparent;
    border: 1px solid transparent;
}

.toolbar-btn img {
    width: 24px;
    height: 24px;
}

.address-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    margin-left: 4px;
    min-width: 0;
}

.address-label {
    font-size: 11px;
    font-family: "Tahoma", sans-serif;
    color: #000;
    white-space: nowrap;
    flex-shrink: 0;
}

.address-input {
    flex: 1;
    height: 24px;
    padding: 2px 4px;
    border: 2px inset #ffffff;
    font-size: 11px;
    font-family: "Tahoma", sans-serif;
    outline: none;
    min-width: 100px;
}

.go-btn {
    height: 24px;
    padding: 2px 8px;
    background: linear-gradient(to bottom, #ffffff, #e8e8e8);
    border: 1px solid #aca899;
    cursor: pointer;
    font-size: 11px;
    font-family: "Tahoma", sans-serif;
    outline: none;
    flex-shrink: 0;
    min-width: 32px;
}

.go-btn:hover {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    border-color: #316ac5;
}

.go-btn:active {
    background: linear-gradient(to bottom, #e8e8e8, #ffffff);
    border: 1px inset #aca899;
}

.browser-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.browser-main {
    flex: 1;
    background: white;
    overflow-y: auto;
    overflow-x: auto;
}y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.webpage-container {
    padding: 16px;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.webpage-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.webpage-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
}

.news-section, .weather-section, .links-section {
    margin-bottom: 20px;
}

.news-section h3, .weather-section h3, .links-section h3 {
    font-size: 13px;
    margin-bottom: 8px;
    font-family: "Tahoma", sans-serif;
}

.news-item, .link-item {
    margin: 6px 0;
    font-size: 11px;
    line-height: 1.3;
}

.weather-info {
    background: #f5f5f5;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 11px;
}

.browser-status-bar {
    background: #ece9d8;
    border-top: 1px solid #aca899;
    padding: 2px 8px;
    font-size: 11px;
    color: #000000;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-control {
    background: #f0f0f0;
    border: 1px inset #dfdfdf;
    padding: 1px 4px;
    font-size: 10px;
    min-width: 30px;
    text-align: center;
}

.explorer-toolbar {
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    height: 40px;
    font-size: 11px;
    flex-shrink: 0;
}

.toolbar-btn.text-btn {
    padding: 4px 8px;
    min-width: 60px;
}

.toolbar-btn.icon-only img {
    width: 24px;
    height: 24px;
}

.toolbar-btn span {
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    color: #000000;
    margin-left: 4px;
}

.address-bar {
    background: #ece9d8;
    border-bottom: 1px solid #aca899;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    height: 28px;
    font-size: 11px;
    flex-shrink: 0;
}

.address-bar .address-label {
    color: #000000;
    margin-right: 8px;
    font-weight: normal;
    font-family: "Tahoma", sans-serif;
}

.address-bar .address-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px inset #ece9d8;
    padding: 2px 4px;
    flex: 1;
    height: 20px;
}

.address-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.explorer-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.explorer-sidebar {
    width: 200px;
    background: #ece9d8;
    border-right: 1px solid #a0a0a0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 8px 6px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 12px;
    background: white;
    border: 1px solid #b8b8b8;
    flex-shrink: 0;
}

.sidebar-header {
    background: linear-gradient(to bottom, #b8d4f0, #a0c8e8);
    padding: 4px 8px;
    font-weight: bold;
    font-size: 11px;
    color: #003d6b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8bb8da;
    min-height: 18px;
}

.collapse-btn {
    background: none;
    border: none;
    cursor: default;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -30px;
    outline: none;
    pointer-events: none;
}

.collapse-btn img {
    width: 16px;
    height: 16px;
}

.sidebar-content {
    padding: 6px 8px 8px 8px;
    background: white;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 3px 4px;
    cursor: pointer;
    color: #003d6b;
    font-size: 11px;
    transition: background-color 0.1s;
    text-decoration: underline;
    margin-bottom: 2px;
}

.sidebar-item:hover {
    background: #e6f3ff;
    text-decoration: none;
}

.sidebar-item img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.explorer-main {
    flex: 1;
    background: white;
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 8px;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 2px;
    transition: background-color 0.1s;
}

.image-item:hover {
    background: rgba(49, 106, 197, 0.1);
    border: 1px dotted rgba(49, 106, 197, 0.8);
}

.image-item.selected {
    background: rgba(49, 106, 197, 0.3);
    border: 1px dotted rgba(49, 106, 197, 1);
}

.image-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid #dfdfdf;
    margin-bottom: 4px;
}

.image-item span {
    font-size: 11px;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
    line-height: 12px;
}

.picture-viewer-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ece9d8;
    min-height: 0;
}

.picture-display-area {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    min-height: 0;
}

.picture-display-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #dfdfdf;
    display: block;
}

.picture-status-bar {
    background: #ece9d8;
    border-top: 1px solid #aca899;
    padding: 4px 8px;
    font-size: 11px;
    color: #000000;
    height: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.picture-viewer-icon {
    width: 34px !important;
    height: 34px !important;
    margin-right: 4px;
}

.text-area-container {
    flex: 1;
    padding: 0;
    margin: 0;
    background: white;
    display: flex;
    min-height: 0;
}

.notepad-textarea {
    flex: 1;
    border: none;
    resize: none;
    outline: none;
    font-family: "Lucida Console", monospace;
    font-size: 12px;
    padding: 4px;
    background: white;
    color: black;
    box-sizing: border-box;
    margin: 0;
    overflow-y: auto;
    overflow-x: auto;
}