* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tahoma", "Arial", sans-serif;
    user-select: none;
}

body {
    overflow: hidden;
    background: #000;
    height: 100vh;
    width: 100vw;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* Boot Screen */
#boot-screen {
    background: linear-gradient(to bottom, #0a246a, #a6caf0);
    color: white;
}

.boot-container {
    text-align: center;
}

.xp-logo {
    margin-bottom: 30px;
}

.xp-window {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #7db9e8, #1e5799);
    margin: 0 auto 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.xp-window::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: white;
    border-radius: 5px;
}

.xp-window::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, #7db9e8, #1e5799);
    border-radius: 3px;
}

.xp-text {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.boot-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #ffd700, #ff8c00);
    width: 0%;
    transition: width 0.1s ease;
}

/* Login Screen */
#login-screen {
    background: linear-gradient(to bottom, #0a246a, #a6caf0);
}

.login-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    width: 350px;
}

.login-header {
    margin-bottom: 30px;
}

.xp-logo-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7db9e8, #1e5799);
    margin: 0 auto 15px;
    border-radius: 5px;
    position: relative;
}

.xp-logo-small::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: white;
    border-radius: 3px;
}

.xp-logo-small::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: linear-gradient(135deg, #7db9e8, #1e5799);
    border-radius: 2px;
}

.login-header h1 {
    color: #1e5799;
    font-size: 24px;
}

.login-form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-icon {
    width: 80px;
    height: 80px;
    
    border-radius: 5px;
}

.login-inputs {
    flex: 1;
}

.login-inputs input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.login-error {
    color: #c00;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

#login-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(to bottom, #5b9c36, #3a6b1f);
    color: white;
    border: 1px solid #2d5118;
    border-radius: 3px;
    cursor: pointer;
}

#login-btn:hover {
    background: linear-gradient(to bottom, #6bac41, #4a7b29);
}

/* Desktop */
#desktop {
    background: url('assets/walpaper/walpaper.png') center/cover no-repeat;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
}


.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 80px;
    gap: 15px;
    width: 100%;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    width: 80px;
}

.desktop-icon:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.desktop-icon.selected {
    background: rgba(30, 87, 153, 0.5);
    border-color: #1e5799;
}

.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.desktop-icon span {
    font-size: 11px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    word-break: break-word;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, #316ac5, #1e4b8f);
    border-top: 1px solid #5a93e4;
    display: flex;
    align-items: center;
    padding: 0 5px;
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background: linear-gradient(to bottom, #6bb043, #367c21);
    color: white;
    border: 1px solid #2d6819;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
}

.start-button:hover {
    background: linear-gradient(to bottom, #7bc053, #478c31);
}

.start-icon {
    width: 16px;
    height: 16px;
    background: white;
    margin-right: 5px;
    border-radius: 2px;
}

.quick-launch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.quick-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #5a93e4;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.taskbar-app {
    padding: 5px 10px;
    background: linear-gradient(to bottom, #7db9e8, #4a8bd6);
    border: 1px solid #5a93e4;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-app.active {
    background: linear-gradient(to bottom, #9cc7f0, #6ba5e8);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-left: 1px solid #5a93e4;
}

.tray-icons {
    display: flex;
    gap: 3px;
}

.tray-icon {
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
}

.clock {
    color: white;
    font-size: 12px;
    padding: 0 10px;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 400px;
    height: 450px;
    background: linear-gradient(to right, #e2a667, #d18c42);
    border: 2px solid #a66b2a;
    border-radius: 5px 5px 0 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.start-menu-header {
    background: linear-gradient(to right, #4a8bd6, #316ac5);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-picture {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #7db9e8, #1e5799);
    border-radius: 3px;
}

.user-name {
    font-size: 14px;
    font-weight: bold;
}

.start-menu-content {
    flex: 1;
    display: flex;
}

.start-menu-left {
    flex: 1;
    background: white;
    padding: 10px 0;
}

.start-menu-right {
    width: 180px;
    background: #f0f0f0;
    padding: 10px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    gap: 10px;
}

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

.menu-icon {
    width: 24px;
    height: 24px;
    background: rgba(30, 87, 153, 0.7);
    border-radius: 2px;
}

.start-menu-section {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.start-menu-footer {
    background: #f0f0f0;
    border-top: 1px solid #ccc;
}

.start-menu-footer .start-menu-item {
    background: linear-gradient(to right, #e2a667, #d18c42);
    color: white;
}

.start-menu-footer .start-menu-item:hover {
    background: linear-gradient(to right, #f2b677, #e19c52);
}

/* Windows - FIXED: Removed slow animations for dragging */
.window {
    position: absolute;
    background: #ece9d8;
    border: 2px solid #003399;
    border-radius: 5px 5px 0 0;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
    /* Fast open/close animations only */
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 40px) !important;
}

.window-header {
    background: linear-gradient(to bottom, #0a246a, #316ac5);
    color: white;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    border-radius: 3px 3px 0 0;
    user-select: none;
}

.window-title {
    font-size: 12px;
    font-weight: bold;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.window-control {
    width: 20px;
    height: 16px;
    background: #ece9d8;
    border: 1px solid #003399;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: #003399;
    cursor: pointer;
}

.window-control:hover {
    background: #d6d3c4;
}

.window-content {
    padding: 10px;
    height: calc(100% - 30px);
    overflow: auto;
}

/* Resize Handle */
.window-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, transparent 50%, #003399 50%);
    cursor: nw-resize;
}

.window.maximized .window-resize-handle {
    display: none;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: #ece9d8;
    border: 1px solid #003399;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1002;
    min-width: 150px;
}

.context-item {
    padding: 5px 20px 5px 30px;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

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

.context-separator {
    height: 1px;
    background: #ccc;
    margin: 2px 0;
}

/* Dialog */
.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ece9d8;
    border: 2px solid #003399;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    z-index: 1003;
    min-width: 300px;
}

.dialog-title {
    background: linear-gradient(to bottom, #0a246a, #316ac5);
    color: white;
    padding: 8px 15px;
    font-weight: bold;
}

.dialog-content {
    padding: 20px;
}

.dialog-buttons {
    padding: 10px 15px;
    text-align: right;
    border-top: 1px solid #ccc;
}

.dialog-button {
    padding: 5px 15px;
    background: linear-gradient(to bottom, #ece9d8, #d6d3c4);
    border: 1px solid #003399;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.dialog-button:hover {
    background: linear-gradient(to bottom, #e6e3d4, #c6c3b4);
}

/* Shutdown Options */
.shutdown-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.shutdown-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

.shutdown-option:hover {
    background: rgba(49, 106, 197, 0.1);
}

.option-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 87, 153, 0.7);
    border-radius: 5px;
    margin-bottom: 5px;
}

/* App Specific Styles */
.portfolio-content, .resume-content, .projects-content,
.education-content, .skills-content, .about-content,
.contact-content {
    font-size: 12px;
    line-height: 1.4;
}

.contact-link {
    color: #316ac5;
    text-decoration: none;
    cursor: pointer;
}

.contact-link:hover {
    text-decoration: underline;
}

.drawing-canvas {
    border: 1px solid #ccc;
    background: white;
    cursor: crosshair;
    display: block;
}

.drawing-controls {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ccc;
    border: 1px solid #ccc;
}

.calendar-day {
    background: white;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: #e6f3ff;
}

.calendar-day.header {
    background: #316ac5;
    color: white;
    font-weight: bold;
    cursor: default;
}

.calendar-day.today {
    background: #ffd700;
    font-weight: bold;
}

.calendar-day.other-month {
    background: #f8f8f8;
    color: #999;
}

.explorer-sidebar {
    width: 200px;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    padding: 10px;
}

.explorer-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    gap: 8px;
}

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

.file-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.file-icon.folder {
    background-color: #feca57;
}

/* FIXED: Icon styles with proper background images */
.icon.portfolio { background-image: url('assets/icons/portfolio.svg'); }
.icon.resume { background-image: url('assets/icons/resume.svg'); }
.icon.projects { background-image: url('assets/icons/projects.svg'); }
.icon.education { background-image: url('assets/icons/education.svg'); }
.icon.skills { background-image: url('assets/icons/skills.svg'); }
.icon.about { background-image: url('assets/icons/about.svg'); }
.icon.drawing { background-image: url('assets/icons/drawing.svg'); }
.icon.calendar { background-image: url('assets/icons/calendar.svg'); }
.icon.explorer { background-image: url('assets/icons/explorer.svg'); }
.icon.contact { background-image: url('assets/icons/contact.svg'); }
.icon.notepad { background-image: url('assets/icons/notepad.svg'); }

/* Quick launch icons */
.quick-icon.portfolio { background-image: url('assets/icons/portfolio.svg'); background-size: 16px 16px; background-position: center; background-color: rgba(255,255,255,0.8); }
.quick-icon.explorer { background-image: url('assets/icons/explorer.svg'); background-size: 16px 16px; background-position: center; background-color: rgba(255,255,255,0.8); }
.quick-icon.drawing { background-image: url('assets/icons/drawing.svg'); background-size: 16px 16px; background-position: center; background-color: rgba(255,255,255,0.8); }
.quick-icon.calendar { background-image: url('assets/icons/calendar.svg'); background-size: 16px 16px; background-position: center; background-color: rgba(255,255,255,0.8); }

/* Menu icons */
.menu-icon.portfolio { background-image: url('assets/icons/portfolio.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.resume { background-image: url('assets/icons/resume.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.projects { background-image: url('assets/icons/projects.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.education { background-image: url('assets/icons/education.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.skills { background-image: url('assets/icons/skills.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.about { background-image: url('assets/icons/about.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.drawing { background-image: url('assets/icons/drawing.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.calendar { background-image: url('assets/icons/calendar.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.explorer { background-image: url('assets/icons/explorer.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.contact { background-image: url('assets/icons/contact.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.notepad { background-image: url('assets/icons/notepad.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.shutdown { background: #ff6b6b; }

/* File icons for explorer */
.file-icon { background-image: url('assets/icons/notepad.svg'); background-size: 12px 12px; background-position: center; background-color: #45b7d1; }
.file-icon.folder { background-image: url('assets/icons/explorer.svg'); background-size: 12px 12px; background-position: center; background-color: #feca57; }

/* Remove background colors when icons are present */
.icon.portfolio, .icon.resume, .icon.projects, 
.icon.education, .icon.skills, .icon.about,
.icon.drawing, .icon.calendar, .icon.explorer,
.icon.contact, .icon.notepad {
    background-color: transparent !important;
    border: none !important;
}

.quick-icon {
    background-color: transparent !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.menu-icon {
    background-color: transparent !important;
}
/* Add to existing icon styles */
.icon.internet-explorer { background-image: url('assets/icons/internet-explorer.svg'); }
.icon.shutdown { background-image: url('assets/icons/shutdown.svg'); }

/* Quick launch icons */
.quick-icon.internet-explorer { background-image: url('assets/icons/internet-explorer.svg'); background-size: 16px 16px; background-position: center; background-color: rgba(255,255,255,0.8); }

/* Menu icons */
.menu-icon.internet-explorer { background-image: url('assets/icons/internet-explorer.svg'); background-size: 20px 20px; background-position: center; }
.menu-icon.shutdown { background-image: url('assets/icons/shutdown.svg'); background-size: 20px 20px; background-position: center; }

/* Shutdown option icons */
.option-icon.standby { background-image: url('assets/icons/standby.svg'); background-size: 48px 48px; background-position: center; background-color: transparent; }
.option-icon.shutdown { background-image: url('assets/icons/shutdown.svg'); background-size: 48px 48px; background-position: center; background-color: transparent; }
.option-icon.restart { background-image: url('assets/icons/restart.svg'); background-size: 48px 48px; background-position: center; background-color: transparent; }

/* Internet Explorer specific styles */
.browser-toolbar {
    padding: 5px;
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    display: flex;
    gap: 5px;
    align-items: center;
}

.browser-address-bar {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.browser-content {
    flex: 1;
    border: none;
    background: white;
}

.browser-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.browser-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: white;
    padding: 20px;
    text-align: center;
}

.browser-placeholder h2 {
    color: #316ac5;
    margin-bottom: 15px;
}

.browser-placeholder p {
    margin-bottom: 10px;
    color: #666;
}

.website-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.website-item {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.website-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.website-item h4 {
    color: #316ac5;
    margin-bottom: 5px;
}

.website-item p {
    font-size: 11px;
    color: #666;
}