@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #87CEEB 0%, #4FC3F7 25%, #00BCD4 50%, #4FC3F7 75%, #87CEEB 100%);
    background-size: 400% 400%;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    animation: beachWaves 15s ease infinite;
}

@keyframes beachWaves {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Palm tree shadow overlay effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 45px,
        rgba(0, 150, 136, 0.1) 45px,
        rgba(0, 150, 136, 0.1) 50px
    );
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: sunGlow 8s ease-in-out infinite;
}

@keyframes sunGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.desktop {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
}

/* Beach-themed Window */
.window {
    background: rgba(255, 248, 220, 0.95);
    border: 3px solid;
    border-color: #FFD54F #FFA726 #FFA726 #FFD54F;
    border-radius: 8px 8px 0 0;
    box-shadow: 
        0 0 40px rgba(255, 193, 7, 0.5),
        inset 0 0 50px rgba(255, 245, 157, 0.3);
    width: 100%;
    max-width: 950px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Window Title Bar */
.window-titlebar {
    background: linear-gradient(135deg, 
        rgba(255, 167, 38, 0.9) 0%, 
        rgba(255, 193, 7, 0.9) 50%, 
        rgba(255, 167, 38, 0.9) 100%);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    height: 32px;
    border-bottom: 2px solid #FFB74D;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FF6B35;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8), 0 2px 4px rgba(255, 255, 255, 0.5);
}

.title-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 5px #FF6B35);
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-controls button {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 167, 38, 0.6);
    background: rgba(255, 224, 130, 0.8);
    color: #FF6B35;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 3px;
    transition: all 0.3s;
}

.window-controls button:hover {
    background: rgba(255, 193, 7, 0.9);
    border-color: #FF6B35;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.7);
}

.btn-close {
    background: rgba(244, 67, 54, 0.6) !important;
    color: #FFEB3B;
    border-color: rgba(244, 67, 54, 0.8);
}

.btn-close:hover {
    background: rgba(244, 67, 54, 0.8) !important;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.7) !important;
}

/* Menu Bar */
.window-menubar {
    background: rgba(255, 235, 59, 0.3);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.4);
    display: flex;
    gap: 12px;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
}

.menu-item {
    padding: 4px 10px;
    cursor: pointer;
    color: #FF6B35;
    transition: all 0.3s;
    border-radius: 3px;
}

.menu-item:hover {
    background: rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Window Content */
.window-content {
    flex: 1;
    background: rgba(255, 248, 220, 0.95);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header Panel */
.header-panel {
    background: linear-gradient(135deg, rgba(255, 224, 130, 0.6) 0%, rgba(255, 245, 157, 0.8) 100%);
    border: 2px solid rgba(255, 193, 7, 0.5);
    margin: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 6px;
    box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.3);
}

.logo-container {
    text-align: center;
}

.beach-logo {
    font-size: 72px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
}

/* Swinging animation for the image */
.swinging {
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes swing {
    0%, 100% { 
        transform: rotate(-8deg);
    }
    50% { 
        transform: rotate(8deg);
    }
}

.swinging-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
}

.app-title {
    font-size: 32px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0 5px 0;
    text-shadow: 0 0 30px rgba(255, 193, 7, 0.7);
    letter-spacing: 4px;
}

.app-subtitle {
    font-size: 11px;
    color: #00ACC1;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.info-panel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.info-box {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 193, 7, 0.6);
    padding: 10px 15px;
    font-size: 10px;
    border-radius: 4px;
    color: #FF6B35;
    box-shadow: inset 0 0 15px rgba(255, 193, 7, 0.2);
}

.info-box strong {
    color: #00ACC1;
}

.status-indicator {
    color: #4CAF50;
    font-size: 16px;
    animation: sunBlink 2s infinite;
}

@keyframes sunBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Terminal Container */
.terminal-container {
    background: rgba(230, 245, 255, 0.95);
    border: 2px solid rgba(100, 181, 246, 0.6);
    margin: 0 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(129, 212, 250, 0.3);
}

.terminal-header {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.6) 0%, rgba(129, 212, 250, 0.7) 100%);
    color: #FF6B35;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    border-bottom: 2px solid rgba(33, 150, 243, 0.5);
}

.terminal-body {
    flex: 1;
    background: #E1F5FE;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.output {
    flex: 1;
    margin-bottom: 10px;
}

.output p {
    margin: 3px 0;
    color: #00ACC1;
    line-height: 1.6;
}

.system-msg {
    color: #00ACC1;
    opacity: 0.8;
}

.thinking {
    color: #FFA726;
    animation: thinkingBlink 0.8s infinite;
}

@keyframes thinkingBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.response {
    color: #FF6B35;
    font-weight: bold;
    margin: 10px 0;
    padding: 12px;
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #FF6B35;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prompt {
    color: #00ACC1;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 172, 193, 0.8);
}

.user-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FF6B35;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    outline: none;
}

.cursor {
    color: #FF6B35;
    animation: cursorBlink 1s infinite;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Footer Panel */
.footer-panel {
    background: rgba(255, 224, 130, 0.5);
    border-top: 2px solid rgba(255, 193, 7, 0.5);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 10px;
    color: #FF6B35;
    font-family: 'JetBrains Mono', monospace;
}

.status-section {
    padding: 2px 10px;
    border-right: 1px solid rgba(255, 193, 7, 0.4);
}

.status-section:last-child {
    border-right: none;
}

#cpu-load {
    color: #4CAF50;
    font-weight: bold;
}

/* Beach-themed Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 152, 0, 0.95) 100%);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #FFD54F 0%, #FF6B35 50%, #FFD54F 100%) 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 -5px 30px rgba(255, 193, 7, 0.5);
    z-index: 1000;
}

.start-button {
    background: linear-gradient(135deg, rgba(255, 224, 130, 0.8) 0%, rgba(255, 183, 77, 0.8) 100%);
    border: 2px solid rgba(255, 152, 0, 0.7);
    border-radius: 6px;
    padding: 6px 15px;
    color: #FF6B35;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    transition: all 0.3s;
    font-family: 'Orbitron', sans-serif;
}

.start-button:hover {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.9) 0%, rgba(255, 193, 7, 0.9) 100%);
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.7);
}

.start-icon {
    font-size: 18px;
    filter: drop-shadow(0 0 5px #FF6B35);
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 6px;
    margin: 0 12px;
}

.taskbar-item {
    background: rgba(255, 235, 59, 0.5);
    border: 2px solid rgba(255, 183, 77, 0.6);
    padding: 6px 12px;
    color: #FF6B35;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
}

.taskbar-item.active {
    background: rgba(255, 193, 7, 0.7);
    border-color: #FF6B35;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
}

.taskbar-icon {
    font-size: 16px;
}

.taskbar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    background: rgba(255, 235, 59, 0.4);
    border-left: 2px solid rgba(255, 193, 7, 0.5);
    height: 35px;
    color: #FF6B35;
    font-size: 11px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.tray-icon {
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.tray-icon:hover {
    filter: drop-shadow(0 0 8px #FF6B35);
}

.tray-time {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(225, 245, 254, 0.8);
    border-left: 1px solid rgba(100, 181, 246, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.6) 0%, rgba(255, 152, 0, 0.6) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 183, 77, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.8) 0%, rgba(255, 152, 0, 0.8) 100%);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .window {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .app-title {
        font-size: 24px;
    }
    
    .beach-logo {
        font-size: 56px;
    }
    
    .swinging-image {
        width: 80px;
        height: 80px;
    }
    
    .info-panel {
        flex-direction: column;
    }
    
    .iq-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .taskbar-text {
        display: none;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 3px;
    }
    
    .status-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 193, 7, 0.4);
    }
}
