/* ============================================================================
   PORTFOLIO STYLES - Windows-Themed Portfolio Website
   All CSS styles extracted from index.html
   ============================================================================ */

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

html {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Keyboard Focus Indicators */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus,
[role="button"]:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Remove default outline for mouse users only */
*:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    height: 100vh;
    width: 100vw;
    max-height: 100vh;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    cursor: default;
    user-select: none;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        user-select: text;
    }

    html {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        height: auto !important;
    }

    .gradient-bg {
        position: fixed !important;
        height: 100vh !important;
        width: 100% !important;
    }

    /* Hide desktop-only elements on mobile */
    .login-screen,
    .desktop,
    .taskbar,
    .start-menu,
    .context-menu,
    .calendar-widget,
    .screensaver {
        display: none !important;
    }

    /* Show mobile layout */
    .mobile-layout {
        display: block !important;
    }
}

/* Desktop only - hide mobile layout */
.mobile-layout {
    display: none;
}

/* MOBILE LAYOUT STYLES */
.mobile-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px 30px;
    text-align: center;
    color: white;
}

.mobile-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background: white;
}

.mobile-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-header h2 {
    font-size: 16px;
    font-weight: normal;
    opacity: 0.95;
    margin-bottom: 20px;
}

.mobile-contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mobile-contact-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.mobile-contact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.mobile-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-nav-items {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav-items::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    flex: 0 0 auto;
    padding: 16px 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.mobile-nav-item.active {
    border-bottom-color: #667eea;
    color: #764ba2;
}

.mobile-section {
    padding: 30px 20px;
    background: white;
}

.mobile-section:nth-child(even) {
    background: #f9f9f9;
}

.mobile-section h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-card h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.mobile-card p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 10px;
}

.mobile-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.mobile-skill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.mobile-skill-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.mobile-skill-name {
    font-size: 14px;
    font-weight: 600;
}

.mobile-projects {
    display: grid;
    gap: 15px;
}

.mobile-project {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.mobile-project:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
    text-decoration: none;
}

.mobile-project h4 {
    color: #667eea;
    margin-bottom: 8px;
}

.mobile-project p {
    color: #666;
    font-size: 13px;
}

.mobile-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    margin: 10px auto;
    transition: all 0.3s;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.mobile-footer {
    background: #2d2d2d;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.mobile-footer p {
    opacity: 0.8;
    font-size: 14px;
}

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

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(15, 52, 96, 0.4) 0%, transparent 50%);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.3s;
    overflow: hidden;
}

/* FLOATING PARTICLES */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(102, 126, 234, 0.6) 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: float linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
                0 0 30px rgba(102, 126, 234, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(20px) rotate(45deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-30px) rotate(180deg) scale(1.2);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50vh) translateX(50px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.particle.glow {
    animation: floatGlow linear infinite;
}

@keyframes floatGlow {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0);
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8),
                    0 0 30px rgba(102, 126, 234, 0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(20px) rotate(45deg) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(-30px) rotate(180deg) scale(1.2);
        box-shadow: 0 0 25px rgba(255, 255, 255, 1),
                    0 0 50px rgba(102, 126, 234, 0.8);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50vh) translateX(50px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* LOGIN */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-container {
    text-align: center;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: white;
}

.login-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-name {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.login-button {
    width: 280px;
    padding: 15px;
    background: white;
    border: none;
    border-radius: 8px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.login-time {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-date {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* DESKTOP */
.desktop {
    width: 100%;
    height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
    overflow: hidden;
}

.desktop-icon {
    width: 80px;
    text-align: center;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    position: relative;
}

.desktop-icon:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.4));
}

.desktop-icon:hover::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: 8px;
    z-index: -1;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.desktop-icon span {
    display: block;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.desktop-icon:hover span {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

/* WINDOW ANIMATIONS */
@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.window.opening {
    animation: windowOpen 0.3s ease-out forwards;
}

.window.closing {
    animation: windowClose 0.2s ease-in forwards;
    pointer-events: none;
}

/* WINDOWS */
.window {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: windowOpen 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    min-width: 300px;
    min-height: 200px;
}

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

.window.closing {
    animation: windowClose 0.3s ease-in forwards;
}

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

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

@keyframes windowMinimize {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.1) translateY(calc(100vh - 100px));
    }
}

.window.restoring {
    animation: windowRestore 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes windowRestore {
    0% {
        opacity: 0;
        transform: scale(0.1) translateY(calc(100vh - 100px));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.window-header {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid #ccc;
    user-select: none;
    flex-shrink: 0;
}

.terminal .window-header {
    background: #0c0c0c;
    border-bottom: 1px solid #333;
}

.terminal .window-title {
    color: #fff;
}

.window-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

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

.window-button {
    width: 28px;
    height: 28px;
    border: 1px solid #aaa;
    background: linear-gradient(180deg, #fff 0%, #e5e5e5 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    border-radius: 2px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.window-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.window-button:active::before {
    width: 100%;
    height: 100%;
}

.window-button:hover {
    background: linear-gradient(180deg, #fff 0%, #d0d0d0 100%);
    transform: translateY(-1px);
}

.window-button.close:hover {
    background: #e81123;
    color: white;
    border-color: #e81123;
    box-shadow: 0 2px 8px rgba(232, 17, 35, 0.4);
}

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

/* Resize handles */
.window-resize-handle {
    position: absolute;
    background: transparent;
}

/* Corners */
.window-resize-handle.tl {
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    cursor: nw-resize;
}

.window-resize-handle.tr {
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    cursor: ne-resize;
}

.window-resize-handle.bl {
    bottom: 0;
    left: 0;
    width: 15px;
    height: 15px;
    cursor: sw-resize;
}

.window-resize-handle.br {
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    cursor: se-resize;
    background: transparent;
    border-radius: 0 0 8px 0;
}

/* Sides */
.window-resize-handle.top {
    top: 0;
    left: 15px;
    right: 15px;
    height: 5px;
    cursor: n-resize;
}

.window-resize-handle.bottom {
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 5px;
    cursor: s-resize;
}

.window-resize-handle.left {
    top: 15px;
    left: 0;
    bottom: 15px;
    width: 5px;
    cursor: w-resize;
}

.window-resize-handle.right {
    top: 15px;
    right: 0;
    bottom: 15px;
    width: 5px;
    cursor: e-resize;
}

.window-resize-handle:hover {
    background: rgba(102, 126, 234, 0.2);
}

.terminal .window-content {
    background: #0c0c0c;
    color: #cccccc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    user-select: text;
}

.terminal .window-content ::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #cccccc;
}

/* PROFILE */
.profile-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid white;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    color: #333;
    margin-bottom: 5px;
}

.profile-info h2 {
    color: #666;
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 15px;
}

.profile-info p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.mission-statement {
    background: rgba(102, 126, 234, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin: 15px 0;
    font-style: italic;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.skill-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

h3 {
    color: #667eea;
    margin: 20px 0 15px 0;
    font-size: 16px;
}

h4 {
    color: #333;
    margin: 10px 0 5px 0;
    font-size: 14px;
}

/* SKILL BARS */
.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-3px);
}

.skill-item h4 {
    color: #667eea;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.skill-bar-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease;
}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* TERMINAL */
.terminal-output {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
    user-select: text;
}

.terminal-output ::selection {
    background: rgba(255, 255, 255, 0.25);
    color: #cccccc;
}

.terminal-prompt {
    color: #0dbc79;
    font-weight: bold;
}

.terminal-input-line {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-top: 10px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #cccccc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    flex: 1;
    padding: 0;
    margin: 0;
    caret-color: #0dbc79;
}

.terminal .terminal-input {
    border: none !important;
    box-shadow: none !important;
}

.terminal .terminal-input:focus {
    border: none !important;
    box-shadow: none !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
}

.window.shake {
    animation: shake 0.5s ease-in-out;
}

/* TASKBAR */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    z-index: 2000;
}

.taskbar-start {
    width: 48px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    border-radius: 4px;
    transition: background 0.2s;
}

.taskbar-start:hover {
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-apps {
    display: flex;
    gap: 5px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-app {
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.taskbar-app.active {
    background: rgba(102, 126, 234, 0.3);
    border-bottom: 2px solid #667eea;
}

.taskbar-app.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
    animation: taskbarPulse 1s ease-in-out infinite;
}

.taskbar-app.minimized {
    opacity: 0.7;
}

@keyframes taskbarPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.taskbar-start:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.taskbar-app-icon {
    font-size: 16px;
}

.taskbar-app-close {
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
}

.taskbar-app:hover .taskbar-app-close {
    opacity: 1;
}

.taskbar-system {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    gap: 1px;
    height: 100%;
}

.taskbar-system-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    height: 100%;
}

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

.taskbar-weather {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.taskbar-weather-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.taskbar-weather-icon {
    font-size: 16px;
    line-height: 1;
}

.taskbar-weather-temp {
    font-size: 13px;
    font-weight: 600;
}

.taskbar-weather-location {
    font-size: 10px;
    opacity: 0.7;
    font-weight: 500;
}

.taskbar-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.taskbar-time-info {
    flex: 1;
}

.taskbar-time {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.taskbar-date {
    font-size: 11px;
    opacity: 0.8;
}

/* SEARCH BAR */
.taskbar-search-container {
    position: relative;
    width: 280px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    height: 36px;
}

.taskbar-search-input {
    width: 100%;
    height: 100%;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: none !important;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.taskbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.taskbar-search-input:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(15px);
}

.taskbar-search-input:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0.08) 100%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px);
}

.search-results {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.95) 0%, rgba(15, 15, 20, 0.95) 100%);
    border: none;
    border-radius: 10px 10px 0 0;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    z-index: 3000;
    margin-bottom: 8px;
    box-shadow: 0 -12px 40px rgba(102, 126, 234, 0.15), 0 -4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.4) transparent;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.search-results.active {
    display: block;
    animation: slideUp 0.2s ease-out;
}

.search-result-item {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
}

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

.search-result-item:hover,
.search-result-item.selected {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(102, 126, 234, 0.08) 100%);
    color: rgba(255, 255, 255, 0.95);
    border-left: 3px solid #667eea;
    padding-left: 16px;
}

.search-result-icon {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
    opacity: 0.9;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.search-result-type {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PROJECT FILTER STYLES */
.project-filter {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.project-filter:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.project-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

.project-card.hidden {
    display: none !important;
}

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

/* CALCULATOR STYLES */
.calc-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 6px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    padding: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.calc-btn:hover {
    background: linear-gradient(135deg, #7a8ff5 0%, #8055b0 100%);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* CALENDAR/WEATHER WIDGET */
.calendar-widget {
    position: fixed;
    bottom: 58px;
    right: 10px;
    width: 650px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-widget.active {
    display: flex;
}

.calendar-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
    border-radius: 11px 11px 0 0;
    text-align: center;
    color: white;
}

.calendar-time {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 5px;
}

.calendar-date {
    font-size: 14px;
    opacity: 0.9;
}

.calendar-content {
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.calendar-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.weather-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.weather-icon {
    font-size: 40px;
}

.weather-info {
    flex: 1;
}

.weather-temp {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.weather-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.weather-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Widget Calendar Styles */
.widget-calendar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-cal-nav {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.widget-cal-nav:hover {
    background: rgba(102, 126, 234, 0.4);
    transform: scale(1.05);
}

.widget-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.widget-calendar-grid > div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-calendar-grid .widget-cal-day-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    cursor: default;
}

.widget-calendar-grid .widget-cal-empty {
    cursor: default;
}

.widget-calendar-grid .widget-cal-day {
    background: rgba(255, 255, 255, 0.05);
}

.widget-calendar-grid .widget-cal-day:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.widget-calendar-grid .widget-cal-today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
}

.widget-calendar-grid .widget-cal-other-month {
    color: rgba(255, 255, 255, 0.3);
}

.weather-error {
    background: rgba(200, 50, 50, 0.2);
    border: 1px solid rgba(200, 50, 50, 0.5);
    color: rgba(255, 150, 150, 0.9);
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
}

.weather-forecast {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
}

.forecast-header {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.forecast-container {
    display: flex;
    gap: 8px;
    overflow-x: hidden;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    text-align: center;
}

.forecast-day {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.forecast-icon {
    font-size: 20px;
    margin: 0;
}

.forecast-temp {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* START MENU */
.start-menu {
    position: fixed;
    bottom: 48px;
    left: 10px;
    width: 300px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    max-height: 70vh;
    overflow: hidden;
}

.start-menu.active {
    display: flex;
}

.start-menu-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.start-menu-profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    flex-shrink: 0;
}

.start-menu-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.start-menu-profile-info h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 2px 0;
}

.start-menu-profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

.start-menu-apps {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

.start-menu-category {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 10px 4px 10px;
    margin-top: 4px;
}

.start-menu-category:first-child {
    margin-top: 0;
}

.start-menu-item {
    padding: 8px 10px;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.start-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.start-menu-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    flex-shrink: 0;
}

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

.start-menu-item-title {
    font-weight: 600;
    font-size: 13px;
}

.start-menu-item-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.start-menu-footer {
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* FORMS */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
}

hr {
    border: 1px solid #ddd;
    margin: 20px 0;
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.toggle-switch label {
    margin: 0;
    font-weight: normal;
    flex: 1;
}

.toggle-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 24px;
    background: #ccc;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
    outline: none;
}

.toggle-checkbox:checked {
    background: #667eea;
}

.toggle-checkbox::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-checkbox:checked::before {
    left: 18px;
}

.settings-category-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.settings-category-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
}

.settings-category-icon:active {
    transform: translateY(-2px);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #667eea;
    margin: 0 0 0.5rem 0;
}

.contact-card p {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}

/* CONTEXT MENU */
.context-menu {
    position: fixed;
    background: rgba(40, 40, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    backdrop-filter: blur(10px);
}

.context-menu.active {
    display: block;
}

.context-menu-item {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-menu-item:hover {
    background: rgba(102, 126, 234, 0.8);
}

.context-menu-item.disabled {
    color: #888;
    cursor: not-allowed;
}

.context-menu-item.disabled:hover {
    background: transparent;
}

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

.context-menu-icon {
    width: 18px;
    text-align: center;
}

/* Tools Window Styling */
.tools-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf1 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);
    gap: 20px;
    flex: 1;
    justify-content: start;
    align-content: start;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    height: fit-content;
}

.tool-item:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.4));
}

.tool-icon {
    width: 60%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 4vw, 26px);
    line-height: 1;
}

.tool-label {
    font-size: clamp(10px, 2vw, 13px);
    font-weight: 600;
    color: #333;
    text-align: center;
    word-wrap: break-word;
    width: 100%;
}

/* Terminal icon text styling */
.tool-item[data-tool="terminal"] .tool-icon {
    color: #000 !important;
}

/* File Manager Styling */
.filemanager-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f0f0f0;
}

.filemanager-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
}

.filemanager-back-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.filemanager-back-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #999;
}

.filemanager-back-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filemanager-path-container {
    flex: 1;
    position: relative;
}

.filemanager-path {
    width: 100%;
    background: white;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.filemanager-path:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.filemanager-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}

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

.suggestion-item:hover,
.suggestion-item.suggestion-hover {
    background: #f0f0f0;
}

.suggestion-item.suggestion-selected {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.filemanager-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.filemanager-tree {
    width: 250px;
    border-right: 1px solid #ddd;
    background: white;
    overflow-y: auto;
    padding: 8px;
    position: relative;
    flex-shrink: 0;
}

.filemanager-resize-handle {
    position: absolute;
    right: -4px;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    background: transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10;
}

.filemanager-resize-handle:hover {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
    border-right-color: #667eea;
}

.folder-item-container {
    display: flex;
    flex-direction: column;
}

.folder-item {
    padding: 8px 8px 8px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: background 0.2s;
    box-sizing: border-box;
}

.folder-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.folder-expand {
    flex-shrink: 0;
    font-weight: bold;
    color: #666;
}

.folder-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.folder-name {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filemanager-main {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    background: white;
    align-content: start;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    border-radius: 4px;
    min-width: 120px;
}

.file-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.file-item.selected {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.file-icon {
    font-size: 32px;
}

.file-name {
    font-size: 11px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Applications window terminal icon styling */
.file-item[data-tool="terminal"] .file-icon {
    color: #0dbc79 !important;
    background: #0c0c0c;
    border-radius: 4px;
    padding: 4px 6px;
    font-weight: bold;
    font-size: 14px;
}

/* IMAGE VIEWER WINDOW STYLING */
.window[data-type="imageviewer"] .window-content {
    overflow: hidden;
    padding: 0;
}

/* ERROR DIALOG STYLING */
.error-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.error-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.error-dialog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.error-dialog-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: slideUp 0.4s ease-out 0.1s both;
}

.error-dialog-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.error-dialog-message {
    padding: 20px 30px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.error-dialog-buttons {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.error-dialog-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.error-dialog-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.error-dialog-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-dialog-button-primary:active {
    transform: translateY(0);
}

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

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

/* CALENDAR APP STYLES */
.calendar-day {
    padding: 8px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #f9f9f9;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #ccc;
    background: transparent;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.calendar-day.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    font-weight: 600;
}

/* SCREENSAVER STYLES */
.screensaver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
    display: none;
    cursor: none;
    overflow: hidden;
}

.screensaver.active {
    display: block;
}

.screensaver-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

