/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0078d4;
    --secondary-color: #005a9e;
    --accent-color: #00bcf2;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --card-bg: #202040;
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --window-header: #2d2d44;
    --taskbar-bg: rgba(30, 30, 50, 0.95);
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    /* Safe area for notch devices */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    padding-top: var(--safe-area-top);
    padding-left: var(--safe-area-left);
    padding-right: var(--safe-area-right);
}

/* Desktop */
.desktop {
    width: 100%;
    height: calc(100vh - 48px - var(--safe-area-bottom));
    height: calc(100dvh - 48px - var(--safe-area-bottom));
    padding: 0;
    position: relative;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
    overflow: hidden;
}

/* Desktop Icons */
.desktop-icon {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    border-radius: 8px;
    transition: background 0.2s ease, border 0.2s ease;
    padding: 8px;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon.selected {
    background: rgba(0, 120, 212, 0.3);
    border: 1px solid rgba(0, 120, 212, 0.5);
}

.desktop-icon.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    cursor: grabbing;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.icon-image {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.icon-image.folder {
    color: #ffc107;
}

.icon-image.terminal {
    color: #4caf50;
}

.icon-image.browser {
    color: #2196f3;
}

.icon-image.notepad {
    color: #9c27b0;
}

.icon-image.music {
    color: #e91e63;
}

.icon-label {
    font-size: 11px;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 100%;
}

/* Windows */
.windows-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 48px);
    pointer-events: none;
    z-index: 100;
}

.window {
    position: absolute;
    width: 700px;
    height: 500px;
    min-width: 300px;
    min-height: 200px;
    background: var(--dark-bg);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window.active {
    display: flex;
    z-index: 1000;
}

.window.minimized {
    display: none;
}

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

.window-header {
    height: 36px;
    background: var(--window-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: move;
    flex-shrink: 0;
}

.window-header.terminal-header {
    background: #1e1e1e;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
}

.window-title i {
    font-size: 14px;
    color: var(--accent-color);
}

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

.window-controls button {
    width: 30px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
}

.window-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.window-controls .close:hover {
    background: #e81123;
    color: white;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: var(--darker-bg);
}

/* Window Toolbar */
.window-toolbar {
    height: 40px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-toolbar button {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-toolbar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.path-bar {
    flex: 1;
    height: 28px;
    background: var(--darker-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--text-secondary);
    font-size: 12px;
    gap: 8px;
}

/* About Window */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
}

.profile-info h1 {
    color: white;
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-info .title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 5px;
}

.profile-info .location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.about-body {
    padding: 10px;
}

.loading-bar {
    text-align: center;
}

.loading-text {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    animation: loadProgress 2s forwards;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

.about-text {
    color: var(--text-primary);
    line-height: 1.6;
}

.about-text h2 {
    color: var(--accent-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-family: monospace;
}

.about-text h3 {
    color: var(--success-color);
    font-size: 14px;
    margin: 20px 0 10px;
    font-family: monospace;
}

.about-text ul {
    list-style: none;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Projects Window */
.projects-content {
    padding: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 188, 242, 0.2);
    background: linear-gradient(135deg, var(--card-bg), rgba(0, 120, 212, 0.2));
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 10px;
}

.project-item span {
    color: var(--text-primary);
    font-size: 12px;
    text-align: center;
}

.project-details {
    animation: fadeIn 0.3s ease;
}

.project-details.hidden {
    display: none;
}

.back-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: var(--secondary-color);
}

.project-detail-content {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
}

.project-detail-content h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.project-detail-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-detail-content .tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.project-detail-content .tech-tag {
    background: rgba(0, 120, 212, 0.2);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.project-detail-content .project-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.project-detail-content .project-links a {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.project-detail-content .project-links a:hover {
    background: var(--secondary-color);
}

/* Skills Window */
.skills-content {
    padding: 0;
}

.skills-tabs {
    display: flex;
    background: var(--card-bg);
    padding: 10px;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.skills-panel {
    display: none;
    padding: 20px;
}

.skills-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.skill-info i {
    font-size: 20px;
    width: 25px;
    text-align: center;
    color: var(--accent-color);
}

.skill-bar {
    height: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
}

/* Contact Window */
.contact-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.email-toolbar {
    display: flex;
    padding: 10px;
    gap: 10px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.email-toolbar button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-toolbar .send-btn {
    background: var(--primary-color);
    color: white;
}

.email-toolbar .send-btn:hover {
    background: var(--secondary-color);
}

.email-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row label {
    width: 80px;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.form-row.message {
    flex: 1;
    align-items: flex-start;
    padding-top: 15px;
}

.form-row textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    resize: none;
    height: 100%;
    min-height: 150px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.github {
    background: #333;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Terminal Window */
.terminal-content {
    background: #1e1e1e;
    padding: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
}

.terminal-output p {
    margin: 2px 0;
}

.terminal-line {
    color: #4ec9b0;
}

.cmd-help {
    color: #9cdcfe;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-input-line span {
    color: #4ec9b0;
    margin-right: 8px;
    font-size: 14px;
}

.terminal-input-line input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

/* Browser Window */
.browser-toolbar {
    height: 45px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
}

.browser-toolbar button {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
}

.browser-toolbar button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.url-bar {
    flex: 1;
    height: 30px;
    background: var(--darker-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.url-bar i {
    color: var(--success-color);
    font-size: 12px;
}

.url-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.browser-content {
    background: var(--darker-bg);
}

.browser-page {
    text-align: center;
    padding: 40px 20px;
}

.browser-page h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.browser-page > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.browser-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Notepad Window */
.notepad-menu {
    display: flex;
    background: var(--card-bg);
    padding: 5px 10px;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.notepad-menu span:hover {
    color: var(--text-primary);
    cursor: pointer;
}

.notepad-content {
    padding: 0;
}

.notepad-content textarea {
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    border: none;
    color: var(--text-primary);
    font-family: 'Consolas', monospace;
    font-size: 14px;
    padding: 15px;
    resize: none;
    outline: none;
    line-height: 1.5;
}

/* Music Player Window */
.music-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--dark-bg), var(--darker-bg));
    padding: 30px;
}

.album-art {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    margin-bottom: 20px;
    animation: spin 10s linear infinite paused;
}

.album-art.playing {
    animation-play-state: running;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.song-info {
    text-align: center;
    margin-bottom: 20px;
}

.song-info h3 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.song-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

.music-progress {
    flex: 1;
    height: 4px;
    background: var(--card-bg);
    border-radius: 2px;
    cursor: pointer;
}

.music-progress-bar {
    width: 35%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.music-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.2s;
}

.music-controls button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.music-controls .play-btn {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: white;
    font-size: 20px;
}

.music-controls .play-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.volume-control input[type="range"] {
    width: 100px;
    accent-color: var(--accent-color);
}

/* Recycle Bin */
.recycle-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    height: calc(48px + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.start-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-button i {
    font-size: 18px;
    color: var(--accent-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 10px;
    width: 250px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 14px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    width: 100%;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 5px;
    overflow-x: auto;
}

.taskbar-app {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: background 0.2s;
    white-space: nowrap;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-app.active {
    background: rgba(0, 120, 212, 0.3);
    border-bottom: 2px solid var(--primary-color);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tray-icon {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tray-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
}

.clock .time {
    font-weight: 500;
}

.clock .date {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: 58px;
    left: 10px;
    width: 350px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.start-menu.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-header {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.user-info span {
    color: white;
    font-weight: 500;
}

.start-menu-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px;
    padding: 10px 15px;
    border-radius: 4px;
}

.start-menu-search i {
    color: var(--text-secondary);
    margin-right: 10px;
}

.start-menu-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    width: 100%;
}

.start-menu-apps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.app-tile:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.app-tile i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.app-tile span {
    color: var(--text-primary);
    font-size: 11px;
    text-align: center;
}

.start-menu-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
}

.start-menu-footer button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.start-menu-footer button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.power-btn:hover {
    color: var(--error-color) !important;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    bottom: 58px;
    right: 10px;
    width: 350px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.notification-panel.hidden {
    display: none;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header h3 {
    color: var(--text-primary);
    font-size: 16px;
}

.notification-header button {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 12px;
}

.notifications-list {
    max-height: 250px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-item i {
    font-size: 20px;
    color: var(--accent-color);
    margin-top: 2px;
}

.notification-content p {
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 3px;
}

.notification-content p:last-of-type {
    color: var(--text-secondary);
    font-size: 12px;
}

.notification-time {
    color: var(--text-secondary);
    font-size: 11px;
}

.quick-actions {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.quick-actions button {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.2s;
}

.quick-actions button:hover {
    background: var(--primary-color);
    color: white;
}

.quick-actions button.active {
    background: var(--primary-color);
    color: white;
}

/* ==================== TRAY PANELS ==================== */
.tray-panel {
    position: fixed;
    bottom: 58px;
    right: 10px;
    width: 320px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.tray-panel.hidden {
    display: none;
}

.tray-panel-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tray-panel-header h3 {
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tray-panel-header h3 i {
    color: var(--accent-color);
}

.tray-panel-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.tray-action-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.tray-action-btn:hover {
    background: var(--primary-color);
}

/* WiFi Panel */
.wifi-list {
    padding: 10px;
}

.wifi-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.wifi-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wifi-item.connected {
    background: rgba(0, 120, 212, 0.2);
    border: 1px solid var(--primary-color);
}

.wifi-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wifi-info i {
    font-size: 18px;
    color: var(--accent-color);
}

.wifi-name {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
}

.wifi-status {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
}

.wifi-item > i {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Volume Panel */
.volume-slider-container {
    padding: 20px 15px;
}

.volume-device {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.volume-device i {
    color: var(--accent-color);
}

.volume-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-value {
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 10px;
}

.audio-options {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.audio-option-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
}

.audio-option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.audio-option-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Battery Panel */
.battery-info {
    text-align: center;
    padding: 20px;
}

.battery-icon-large {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.battery-percentage {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-primary);
}

.battery-status {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.battery-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 15px 15px;
    border-radius: 4px;
    overflow: hidden;
}

.battery-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #4ade80);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.power-options {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.power-mode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 11px;
}

.power-mode i {
    font-size: 18px;
}

.power-mode:hover {
    background: rgba(255, 255, 255, 0.15);
}

.power-mode.active {
    background: var(--primary-color);
    color: white;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: var(--taskbar-bg);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    min-width: 200px;
    padding: 5px 0;
    animation: fadeIn 0.15s ease;
}

.context-menu.hidden {
    display: none;
}

.context-item {
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-item i {
    width: 16px;
    color: var(--text-secondary);
}

.context-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

.boot-screen.hidden {
    display: none;
}

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

.boot-logo {
    font-size: 80px;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: pulse 1s ease infinite;
}

.boot-content h1 {
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 30px;
}

.boot-loader {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.boot-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.boot-content p {
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.1) 50%);
    border-radius: 0 0 8px 0;
    transition: background 0.2s ease;
}

.resize-handle:hover {
    background: linear-gradient(135deg, transparent 50%, var(--primary-color) 50%);
}

.resize-handle::before {
    content: '';
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
}

.resize-handle:hover::before {
    border-color: white;
}

/* Edge Resize Handles */
.resize-edge {
    position: absolute;
    z-index: 10;
}

.resize-edge.top {
    top: -3px;
    left: 10px;
    right: 10px;
    height: 6px;
    cursor: ns-resize;
}

.resize-edge.bottom {
    bottom: -3px;
    left: 10px;
    right: 10px;
    height: 6px;
    cursor: ns-resize;
}

.resize-edge.left {
    left: -3px;
    top: 10px;
    bottom: 10px;
    width: 6px;
    cursor: ew-resize;
}

.resize-edge.right {
    right: -3px;
    top: 10px;
    bottom: 10px;
    width: 6px;
    cursor: ew-resize;
}

.resize-edge.top-left {
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    cursor: nwse-resize;
}

.resize-edge.top-right {
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    cursor: nesw-resize;
}

.resize-edge.bottom-left {
    bottom: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    cursor: nesw-resize;
}

.resize-edge.bottom-right {
    bottom: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    cursor: nwse-resize;
}

/* Selection Rectangle */
.selection-rect {
    position: fixed;
    border: 1px solid var(--accent-color);
    background: rgba(0, 188, 242, 0.1);
    pointer-events: none;
    z-index: 50;
}

/* Matrix Rain Effect */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Desktop - Mobile Grid */
    .desktop {
        padding: 10px;
    }
    
    /* Desktop Icons - Smaller for mobile */
    .desktop-icon {
        width: 70px;
        height: 80px;
        padding: 5px;
    }
    
    .icon-image {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .icon-label {
        font-size: 10px;
    }
    
    /* Windows - Full screen on mobile */
    .window {
        width: 100% !important;
        height: calc(100% - 60px) !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0;
        max-width: 100% !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .window.maximized {
        height: calc(100% - 60px) !important;
    }
    
    .window-header {
        padding: 10px 12px;
    }
    
    .window-title span {
        font-size: 13px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .window-controls button {
        width: 32px;
        height: 32px;
    }
    
    /* Hide maximize on mobile - always fullscreen */
    .window-controls .maximize {
        display: none;
    }
    
    /* Resize handle - hidden on mobile */
    .resize-handle {
        display: none;
    }
    
    /* Taskbar - Mobile optimized */
    .taskbar {
        height: 60px;
        padding: 0 8px;
    }
    
    .start-button {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .start-button span {
        display: none;
    }
    
    .start-button i {
        font-size: 20px;
    }
    
    .taskbar-apps {
        gap: 5px;
        overflow-x: auto;
        flex: 1;
        padding: 0 5px;
    }
    
    .taskbar-app {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .taskbar-app i {
        margin-right: 0;
    }
    
    /* Hide taskbar app text on small screens */
    .taskbar-app span,
    .taskbar-app:not(i) {
        font-size: 0;
    }
    
    .taskbar-app i {
        font-size: 16px;
    }
    
    /* System tray - compact */
    .system-tray {
        gap: 8px;
    }
    
    .search-bar {
        display: none;
    }
    
    .notification-btn {
        padding: 8px;
    }
    
    .clock {
        flex-direction: column;
        gap: 0;
        font-size: 11px;
    }
    
    .clock .date {
        font-size: 9px;
    }
    
    /* Start Menu - Mobile */
    .start-menu {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 70px;
        max-height: 70vh;
    }
    
    .start-search input {
        font-size: 14px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .app-tile {
        padding: 15px 10px;
    }
    
    .app-tile i {
        font-size: 28px;
    }
    
    .app-tile span {
        font-size: 11px;
    }
    
    /* Notification Panel - Mobile */
    .notification-panel {
        width: calc(100% - 20px);
        right: 10px;
        max-height: 60vh;
    }
    
    /* Window Content - Mobile adjustments */
    .about-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic {
        margin-bottom: 15px;
    }
    
    .profile-info h1 {
        font-size: 24px;
    }
    
    /* Projects Grid - Mobile */
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    /* Skills - Mobile */
    .skills-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .skill-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .skill-item {
        padding: 12px;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* Contact Form - Mobile */
    .contact-content {
        padding: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .contact-form button {
        padding: 14px;
        font-size: 16px;
    }
    
    /* Terminal - Mobile */
    .terminal-content {
        font-size: 12px;
    }
    
    #terminalInput {
        font-size: 14px;
    }
    
    /* Music Player - Mobile */
    .music-player {
        padding: 15px;
    }
    
    .album-art {
        width: 150px;
        height: 150px;
    }
    
    .player-controls button {
        width: 45px;
        height: 45px;
    }
    
    .player-controls .play-btn {
        width: 55px;
        height: 55px;
    }
    
    /* Browser - Mobile */
    .browser-toolbar {
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px;
    }
    
    .browser-toolbar input {
        flex: 1 1 100%;
        order: 1;
        font-size: 14px;
    }
    
    .browser-controls {
        order: 0;
    }
    
    /* Boot Screen - Mobile */
    .boot-content h1 {
        font-size: 24px;
    }
    
    .boot-content .logo {
        font-size: 60px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .desktop-icon {
        width: 65px;
        height: 75px;
    }
    
    .icon-image {
        width: 36px;
        height: 36px;
        font-size: 26px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .window-content {
        padding: 10px;
    }
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
    .desktop-icon:hover {
        background: transparent;
    }
    
    .desktop-icon.selected {
        background: rgba(0, 120, 212, 0.3);
    }
    
    .desktop-icon:active {
        background: rgba(0, 120, 212, 0.2);
        transform: scale(0.95);
    }
    
    .app-tile:hover {
        background: transparent;
        transform: none;
    }
    
    .app-tile:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }
    
    .taskbar-app:hover {
        background: transparent;
    }
    
    .taskbar-app:active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Larger touch targets */
    .window-controls button {
        min-width: 44px;
        min-height: 44px;
    }
    
    .notification-btn,
    .start-button {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Settings Window Styles */
.icon-image.settings {
    color: #607d8b;
}

.settings-content {
    display: flex;
    height: 100%;
    padding: 0 !important;
}

.settings-sidebar {
    width: 220px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    flex-shrink: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: rgba(var(--primary-color-rgb, 0, 120, 212), 0.2);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.settings-nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.settings-main {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.settings-panel h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 24px;
}

.settings-panel h2 i {
    color: var(--primary-color);
}

.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-option {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.theme-option:hover {
    transform: scale(1.05);
}

.theme-option.active .theme-preview {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 120, 212), 0.3);
}

.theme-preview {
    width: 80px;
    height: 55px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.theme-preview.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.theme-preview.light-theme {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.theme-preview.blue-theme {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.theme-preview.purple-theme {
    background: linear-gradient(135deg, #2d1b69 0%, #5c3d99 100%);
}

.theme-option span {
    color: var(--text-secondary);
    font-size: 12px;
}

.theme-option.active span {
    color: var(--primary-color);
}

/* Accent Colors */
.accent-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.accent-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.accent-color:hover {
    transform: scale(1.1);
}

.accent-color.active {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Wallpaper Selector */
.wallpaper-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wallpaper-option {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wallpaper-option:hover {
    transform: scale(1.05);
}

.wallpaper-option.active .wallpaper-preview {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 120, 212), 0.3);
}

.wallpaper-preview {
    width: 100px;
    height: 65px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Toggle Switch */
.settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-toggle:last-child {
    border-bottom: none;
}

.settings-toggle span {
    color: var(--text-primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Storage Info */
.storage-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.storage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.storage-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.storage-details {
    display: flex;
    flex-direction: column;
}

.storage-details span {
    color: var(--text-primary);
    font-weight: 500;
}

.storage-details small {
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Settings Buttons */
.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.settings-btn.danger {
    background: var(--error-color);
}

/* About Info */
.about-info {
    text-align: center;
}

.about-logo {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-info h3 {
    font-size: 24px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.about-info p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.about-desc {
    margin-top: 15px !important;
    margin-bottom: 25px !important;
}

.about-specs {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item span:first-child {
    color: var(--text-secondary);
}

.spec-item span:last-child {
    color: var(--text-primary);
}

/* Theme Variables for Different Themes */
body.theme-light {
    --dark-bg: #f0f0f0;
    --darker-bg: #e0e0e0;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --window-header: #e8e8e8;
    --taskbar-bg: rgba(240, 240, 240, 0.95);
}

body.theme-light .desktop {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

body.theme-light .window {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .icon-label {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    color: #333;
}

body.theme-blue {
    --dark-bg: #1e3c72;
    --darker-bg: #162d54;
    --card-bg: #2a5298;
}

body.theme-blue .desktop {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

body.theme-purple {
    --dark-bg: #2d1b69;
    --darker-bg: #1f1347;
    --card-bg: #5c3d99;
}

body.theme-purple .desktop {
    background: linear-gradient(135deg, #2d1b69 0%, #5c3d99 100%);
}

/* Animations toggle */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* Transparency toggle */
body.no-transparency .taskbar,
body.no-transparency .start-menu,
body.no-transparency .notification-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Mobile Settings */
@media (max-width: 768px) {
    .settings-content {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .settings-nav-item {
        flex-direction: column;
        padding: 10px 15px;
        min-width: 80px;
        text-align: center;
    }
    
    .settings-nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .settings-nav-item span {
        font-size: 11px;
    }
    
    .theme-selector,
    .wallpaper-selector {
        justify-content: center;
    }
}

/* Clippy Assistant */
.clippy-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transition: all 0.3s ease;
}

.clippy-container.hidden {
    display: none;
}

.clippy-character {
    width: 80px;
    height: 100px;
    cursor: pointer;
    animation: clippyBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.clippy-character:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.clippy-body {
    width: 60px;
    height: 70px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 50%, #ff9500 100%);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    margin: 0 auto;
    border: 3px solid #cc8800;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.clippy-eyes {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
}

.clippy-eye {
    width: 18px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: relative;
    border: 2px solid #333;
    overflow: hidden;
}

.clippy-pupil {
    width: 8px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
}

.clippy-eyebrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 12px;
    width: 100%;
}

.clippy-eyebrow {
    width: 14px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    transform: rotate(-5deg);
}

.clippy-eyebrow.right {
    transform: rotate(5deg);
}

.clippy-base {
    width: 40px;
    height: 20px;
    background: linear-gradient(to bottom, #888 0%, #666 100%);
    margin: -5px auto 0;
    border-radius: 0 0 10px 10px;
    border: 2px solid #555;
    border-top: none;
}

/* Clippy Bubble */
.clippy-bubble {
    background: white;
    border-radius: 15px;
    padding: 15px;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: clippyFadeIn 0.3s ease;
}

.clippy-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid white;
}

.clippy-bubble.hidden {
    display: none;
}

.clippy-message {
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.clippy-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.clippy-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    background: #f0f0f0;
    color: #333;
}

.clippy-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.clippy-btn.clippy-close {
    background: #ffebee;
    color: #c62828;
}

.clippy-btn.clippy-close:hover {
    background: #c62828;
    color: white;
}

/* Clippy Animations */
@keyframes clippyBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes clippyFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes clippyWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes clippyBlink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

.clippy-character.waving {
    animation: clippyWave 0.5s ease;
}

.clippy-character.thinking .clippy-eye {
    animation: clippyBlink 3s ease-in-out infinite;
}

/* Clippy Mobile */
@media (max-width: 768px) {
    .clippy-container {
        bottom: 70px;
        right: 10px;
    }
    
    .clippy-character {
        width: 60px;
        height: 75px;
    }
    
    .clippy-body {
        width: 45px;
        height: 52px;
    }
    
    .clippy-bubble {
        max-width: 220px;
        padding: 12px;
    }
    
    .clippy-message {
        font-size: 12px;
    }
}

/* ==================== PARTICLES BACKGROUND ==================== */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ==================== CUSTOM CURSOR ==================== */
body.custom-cursor {
    cursor: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
}

.cursor-outline.hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 188, 242, 0.1);
}

.cursor-outline.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* ==================== 3D HOVER EFFECT ==================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.project-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-item .project-icon {
    transition: transform 0.3s ease;
}

.project-item:hover .project-icon {
    transform: translateZ(30px);
}

/* ==================== WINDOW ANIMATIONS ==================== */
.window {
    animation: windowOpen 0.3s ease;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.window.closing {
    animation: windowClose 0.2s ease forwards;
}

@keyframes windowClose {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

.window.minimizing {
    animation: windowMinimize 0.3s ease forwards;
}

@keyframes windowMinimize {
    to {
        opacity: 0;
        transform: scale(0.2) translateY(100vh);
    }
}

/* ==================== BIOS BOOT SCREEN ==================== */
.bios-screen {
    background: #000;
    color: #aaa;
    font-family: 'Courier New', monospace;
    padding: 20px;
    height: 100%;
    overflow: hidden;
}

.bios-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #00aaff;
}

.bios-content {
    font-size: 14px;
    line-height: 1.8;
}

.bios-content p {
    margin: 2px 0;
}

.bios-content .check {
    color: #0f0;
}

.bios-content .value {
    color: #ff0;
}

.bios-content .error {
    color: #f00;
}

.boot-content.hidden {
    display: none;
}

.boot-status {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==================== GITHUB STATS ==================== */
.github-content {
    padding: 20px;
    text-align: center;
}

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

.github-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    filter: invert(1);
}

.github-header h2 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.github-header p {
    color: var(--text-secondary);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.github-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.github-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.github-stat-card i {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.github-stat-card .stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.github-stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.github-contribution h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 14px;
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
    margin-bottom: 20px;
}

.contribution-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.contribution-cell.level-1 { background: #0e4429; }
.contribution-cell.level-2 { background: #006d32; }
.contribution-cell.level-3 { background: #26a641; }
.contribution-cell.level-4 { background: #39d353; }

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #238636;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.github-link:hover {
    background: #2ea043;
}

/* ==================== MAP WINDOW ==================== */
.map-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-container {
    flex: 1;
    min-height: 250px;
}

.map-container iframe {
    filter: grayscale(0.3) contrast(1.1);
}

.map-info {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.location-badge i {
    color: #ff4444;
}

.map-info p {
    margin: 5px 0;
    color: var(--text-secondary);
}

/* ==================== TASK MANAGER ==================== */
.taskmanager-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.taskmanager-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.taskman-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.taskman-tab.active {
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
}

.taskman-panel {
    display: none;
    flex: 1;
    overflow: auto;
}

.taskman-panel.active {
    display: block;
}

.process-list {
    padding: 10px;
}

.process-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.process-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.process-item.selected {
    background: rgba(0, 120, 212, 0.3);
    border: 1px solid var(--primary-color);
}

.process-item i {
    font-size: 20px;
    margin-right: 12px;
    color: var(--accent-color);
}

.process-info {
    flex: 1;
}

.process-name {
    color: var(--text-primary);
    font-weight: 500;
}

.process-detail {
    font-size: 11px;
    color: var(--text-secondary);
}

.process-stats {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
}

.perf-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.perf-card h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.perf-chart {
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.perf-value {
    color: var(--accent-color);
    font-size: 14px;
}

.taskman-footer {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.end-task-btn {
    padding: 8px 16px;
    background: var(--error-color);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.end-task-btn:hover {
    background: #d32f2f;
}

/* ==================== SPACE INVADERS ==================== */
.game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #000;
}

.game-header {
    display: flex;
    justify-content: space-between;
    width: 400px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    color: #0f0;
    font-size: 14px;
}

#gameCanvas {
    border: 2px solid #0f0;
    background: #000;
}

.game-controls-info {
    margin-top: 15px;
    text-align: center;
}

.game-controls-info p {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 10px;
}

.start-game-btn {
    background: #0f0;
    color: #000;
    border: none;
    padding: 10px 30px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-game-btn:hover {
    background: #00ff00;
    box-shadow: 0 0 20px #0f0;
}

/* ==================== CODE VIEWER ==================== */
.code-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1e1e1e;
}

.code-tabs {
    display: flex;
    background: #252526;
    padding: 5px 5px 0;
}

.code-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #808080;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.code-tab.active {
    background: #1e1e1e;
    color: #fff;
}

.code-viewer {
    flex: 1;
    overflow: auto;
    padding: 15px;
}

.code-viewer pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-viewer code {
    color: #d4d4d4;
}

.code-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: #007acc;
    color: white;
    font-size: 12px;
}

.copy-code-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== MUSIC TABS ==================== */
.music-tabs {
    display: flex;
    margin-bottom: 15px;
}

.music-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.music-tab:first-child {
    border-radius: 8px 0 0 8px;
}

.music-tab:last-child {
    border-radius: 0 8px 8px 0;
}

.music-tab.active {
    background: var(--primary-color);
    color: white;
}

.music-panel {
    display: none;
}

.music-panel.active {
    display: block;
}

#spotify iframe {
    border-radius: 12px;
}

/* ==================== NEW ICON COLORS ==================== */
.icon-image.github-icon { color: #f0f0f0; }
.icon-image.map-icon { color: #ff6b6b; }
.icon-image.taskman-icon { color: #4ecdc4; }
.icon-image.game-icon { color: #ffe66d; }
.icon-image.code-icon { color: #95e1d3; }
