/* Ubuntu-inspired Shell Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fullscreen overlay animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fullscreen-overlay {
    animation: fadeIn 0.3s ease;
}

.fullscreen-close {
    animation: fadeIn 0.5s ease 0.2s both;
}

/* Restaurant menu specific animations */
.restaurant-menu-content h1 {
    animation: slideInDown 0.6s ease;
}

.restaurant-menu-content h2 {
    animation: slideInLeft 0.5s ease;
}

.restaurant-menu-content .menu-item {
    animation: fadeInUp 0.4s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Showcase icon - no animation */
.app-icon.showcase {
    /* animation removed */
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Ubuntu', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.desktop {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1, #e0e7ff);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Simple branding watermark */
.desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Picos.uno branding watermark */
.desktop::after {
    content: 'picos.uno';
    position: absolute;
    bottom: 120px;
    right: 80px;
    font-size: 120px;
    font-weight: 800;
    color: rgba(99, 102, 241, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.02em;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    transform: rotate(-5deg);
}

/* Top Bar */
.top-bar {
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(60, 60, 60, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 14px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    margin-left: 64px; /* Make room for full-height taskbar */
    width: calc(100vw - 64px); /* Adjust width */
}

.top-bar-left {
    display: flex;
    align-items: center;
}


.top-bar-right {
    display: flex;
    align-items: center;
}

.system-indicators {
    display: flex;
    align-items: center;
    gap: 12px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.1);
}

.indicator svg {
    opacity: 0.9;
    fill: rgba(60, 60, 60, 0.8);
}

.battery-level {
    font-size: 12px;
    font-weight: 500;
}

.datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.datetime:hover {
    background: rgba(255, 255, 255, 0.1);
}

.time {
    font-weight: 600;
    font-size: 13px;
}

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

/* Desktop Content */
.desktop-content {
    flex: 1;
    position: relative;
    padding: 20px;
    margin-left: 64px; /* Make room for left taskbar */
}

/* Taskbar */
.taskbar {
    width: 64px;
    height: 100vh; /* Full height */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0; /* Full height from top */
}

.taskbar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px; /* Push icons below top bar */
}

.app-launcher {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #E95420, #F47068);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(233, 84, 32, 0.3);
    margin-bottom: 12px; /* Space between launcher and other icons */
}

.app-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.4);
}

.app-launcher:active {
    transform: translateY(0);
}

.app-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.app-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.app-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-icon:active {
    transform: translateY(0);
}

.app-icon svg {
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.9);
}

.app-icon:hover svg {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 1);
}

/* Presentation icon specific styling */
.app-icon.presentation {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Shell icon specific styling */
.app-icon.shell {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Notes icon specific styling */
.app-icon.notes {
    background: linear-gradient(135deg, #8E44AD, #9b59b6);
}

/* Files icon specific styling */
.app-icon.files {
    background: linear-gradient(135deg, #F39C12, #E67E22);
}

/* Browser icon specific styling */
.app-icon.browser {
    background: linear-gradient(135deg, #0366d6, #0051a2);
}

/* Showcase icon specific styling */
.app-icon.showcase {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}

.taskbar-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.taskbar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.system-tray {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tray-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.tray-icon svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tray-icon:hover svg {
    opacity: 1;
}

/* App tooltip */
.app-icon::before {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(60, 60, 60, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.app-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(4px);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Responsive design */
@media (max-width: 768px) {
    .taskbar {
        width: 56px;
    }
    
    .desktop-content {
        margin-left: 56px;
    }
    
    .app-icons {
        gap: 4px;
    }
    
    .app-icon {
        width: 32px;
        height: 32px;
    }
    
    .app-launcher {
        width: 32px;
        height: 32px;
    }
    
    .system-indicators {
        gap: 8px;
    }
    
    .datetime {
        font-size: 11px;
    }
}

/* Background - no animations */

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Particles removed - no floating animations */

/* Window Styling */
.window {
    position: absolute;
    min-width: 600px;
    min-height: 500px;
    width: 900px;
    height: 750px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: auto;
    overflow: hidden;
    resize: none;
    top: 60px;
    left: 120px;
}

.window-header {
    height: 40px;
    background: rgba(240, 240, 240, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: move;
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.window-control:hover {
    opacity: 0.8;
}

.window-control.close {
    background: #ff5f57;
}

.window-control.minimize {
    background: #ffbd2e;
}

.window-control.maximize {
    background: #28ca42;
}

.window-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: rgba(60, 60, 60, 0.8);
}

.window-spacer {
    width: 60px; /* Same width as controls to center title */
}

.window-content {
    height: calc(100% - 40px);
    overflow: hidden;
    position: relative;
}

/* Terminal Styling */
.terminal {
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
}

.terminal-output {
    margin-bottom: 16px;
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: #4ec9b0;
    font-weight: 600;
    margin-right: 8px;
}

.terminal-command {
    color: #dcdcaa;
}

.terminal-text {
    color: #d4d4d4;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #dcdcaa;
    font-family: inherit;
    font-size: inherit;
    flex: 1;
    caret-color: #d4d4d4;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #d4d4d4;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    background: transparent;
    z-index: 10;
}

.resize-n {
    top: 0;
    left: 8px;
    right: 8px;
    height: 4px;
    cursor: n-resize;
}

.resize-e {
    top: 8px;
    right: 0;
    bottom: 8px;
    width: 4px;
    cursor: e-resize;
}

.resize-s {
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 4px;
    cursor: s-resize;
}

.resize-w {
    top: 8px;
    left: 0;
    bottom: 8px;
    width: 4px;
    cursor: w-resize;
}

.resize-ne {
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    cursor: ne-resize;
}

.resize-nw {
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    cursor: nw-resize;
}

.resize-se {
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    cursor: se-resize;
}

.resize-sw {
    bottom: 0;
    left: 0;
    width: 8px;
    height: 8px;
    cursor: sw-resize;
}

/* Window animations */
.window.opening {
    animation: windowOpen 0.3s ease-out;
}

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

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.8) 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.8) translateY(20px);
    }
}

/* Bottom icons */
.bottom-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bottom-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    position: relative;
}

.bottom-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.bottom-icon:hover svg {
    fill: rgba(60, 60, 60, 0.9);
}

.bottom-icon:active {
    transform: translateY(0);
}

/* Tooltip for bottom icons */
.bottom-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease-out 0.3s forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}