@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #1a3310 50%, #0d1f08 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Jungle leaves animation background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(56, 142, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(102, 187, 106, 0.1) 0%, transparent 50%);
    background-size: 600px 600px, 500px 500px, 400px 400px;
    animation: jungleDrift 80s ease-in-out infinite;
    z-index: -1;
}

@keyframes jungleDrift {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    50% { background-position: 100% 100%, 0% 0%, 25% 75%; }
}

/* Banana floating animation */
body::after {
    content: '🍌';
    position: fixed;
    top: -100px;
    left: 10%;
    font-size: 40px;
    animation: floatBanana 20s infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes floatBanana {
    0% { transform: translateY(-100px) rotate(0deg); left: 10%; }
    25% { transform: translateY(30vh) rotate(90deg); left: 30%; }
    50% { transform: translateY(50vh) rotate(180deg); left: 70%; }
    75% { transform: translateY(70vh) rotate(270deg); left: 50%; }
    100% { transform: translateY(110vh) rotate(360deg); left: 10%; }
}

.desktop {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: 60px;
}

/* Gorilla Window Styling */
.window {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    border: 5px solid;
    border-color: #a1887f #5d4037 #5d4037 #a1887f;
    border-radius: 12px;
    box-shadow: 
        0 0 0 3px #4e342e,
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.7);
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Window Title Bar - Gorilla Style */
.window-titlebar {
    background: linear-gradient(to bottom, 
        #795548 0%, 
        #6d4c41 50%, 
        #5d4037 100%);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #4e342e;
    height: 32px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 8px 8px 0 0;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffecb3;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.title-icon {
    width: 18px;
    height: 18px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.window-controls {
    display: flex;
    gap: 3px;
}

.window-controls button {
    width: 22px;
    height: 22px;
    border: 2px solid;
    border-color: #a1887f #4e342e #4e342e #a1887f;
    background: linear-gradient(to bottom, #8d6e63 0%, #6d4c41 100%);
    color: #ffecb3;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Comic Neue', monospace;
    transition: all 0.1s;
    border-radius: 4px;
}

.window-controls button:hover {
    background: linear-gradient(to bottom, #a1887f 0%, #795548 100%);
    transform: scale(1.1);
}

.window-controls button:active {
    transform: scale(0.95);
}

.btn-close {
    background: linear-gradient(to bottom, #d32f2f 0%, #c62828 100%) !important;
    color: #fff;
}

.btn-close:hover {
    background: linear-gradient(to bottom, #e53935 0%, #d32f2f 100%) !important;
}

/* Menu Bar - Jungle Style */
.window-menubar {
    background: linear-gradient(to bottom, #6d4c41 0%, #5d4037 100%);
    padding: 6px 8px;
    border-bottom: 2px solid #4e342e;
    display: flex;
    gap: 12px;
    font-size: 11px;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.menu-item {
    padding: 4px 12px;
    cursor: pointer;
    color: #ffecb3;
    transition: all 0.2s;
    border-radius: 4px;
    font-weight: 600;
}

.menu-item:hover {
    background: rgba(76, 175, 80, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Window Content */
.window-content {
    flex: 1;
    background: linear-gradient(135deg, #8d6e63 0%, #7d5d52 100%);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header Panel - Gorilla Info */
.header-panel {
    background: linear-gradient(135deg, #4e342e 0%, #3e2723 100%);
    border: 4px solid;
    border-color: #3e2723 #6d4c41 #6d4c41 #3e2723;
    margin: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.logo-container {
    text-align: center;
}

.gorilla-logo {
    font-size: 80px;
    animation: gorillaBounce 2s ease-in-out infinite;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
}

@keyframes gorillaBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.app-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffecb3;
    margin: 12px 0 6px 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.app-subtitle {
    font-size: 14px;
    color: #a1887f;
    font-style: italic;
    letter-spacing: 1px;
}

.info-panel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
}

.info-box {
    background: linear-gradient(135deg, #5d4037 0%, #4e342e 100%);
    border: 3px solid;
    border-color: #6d4c41 #3e2723 #3e2723 #6d4c41;
    padding: 10px 16px;
    font-size: 11px;
    color: #ffecb3;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.info-box strong {
    color: #fff8e1;
}

.status-indicator {
    color: #ff9800;
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Terminal Container - Jungle Chat */
.terminal-container {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border: 4px solid;
    border-color: #388e3c #0d3d10 #0d3d10 #388e3c;
    margin: 0 12px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.terminal-header {
    background: linear-gradient(to bottom, #388e3c 0%, #2e7d32 100%);
    color: #c5e1a5;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 3px solid #1b5e20;
    letter-spacing: 1px;
    border-radius: 8px 8px 0 0;
}

.terminal-body {
    flex: 1;
    background: linear-gradient(135deg, #0a2f0f 0%, #1b5e20 100%);
    padding: 16px;
    font-family: 'Comic Neue', 'Courier New', monospace;
    font-size: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Jungle glow effect */
.terminal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(139, 195, 74, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.output {
    flex: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.output p {
    margin: 4px 0;
    color: #c5e1a5;
    line-height: 1.6;
    text-shadow: 0 0 8px rgba(197, 225, 165, 0.4);
}

.system-msg {
    color: #c5e1a5;
}

.thinking {
    color: #ffecb3;
    animation: thinkBlink 1.5s infinite;
    font-style: italic;
}

@keyframes thinkBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.response {
    color: #fff8e1;
    font-weight: bold;
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 235, 59, 0.15);
    border-left: 5px solid #fdd835;
    border-radius: 4px;
    text-shadow: 0 0 8px rgba(255, 248, 225, 0.3);
}

.input-line {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.prompt {
    color: #ffecb3;
    font-weight: bold;
    font-size: 16px;
}

.user-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffecb3;
    font-family: 'Comic Neue', 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    text-shadow: 0 0 6px rgba(255, 235, 179, 0.4);
}

.cursor {
    color: #ffecb3;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Footer Panel */
.footer-panel {
    background: linear-gradient(to bottom, #6d4c41 0%, #5d4037 100%);
    border-top: 3px solid #795548;
    border-radius: 0 0 8px 8px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 6px 12px;
    font-size: 11px;
    color: #ffecb3;
}

.status-section {
    padding: 3px 10px;
    border-right: 2px solid #4e342e;
}

.status-section:last-child {
    border-right: none;
}

/* Jungle Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: linear-gradient(to bottom, 
        #795548 0%, 
        #6d4c41 50%, 
        #5d4037 100%);
    border-top: 4px solid #8d6e63;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        0 -8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.start-button {
    background: linear-gradient(to bottom, #66bb6a 0%, #4caf50 50%, #43a047 100%);
    border: 3px solid;
    border-color: #81c784 #2e7d32 #2e7d32 #81c784;
    border-radius: 6px;
    padding: 6px 16px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
}

.start-button:hover {
    background: linear-gradient(to bottom, #81c784 0%, #66bb6a 50%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.start-button:active {
    transform: translateY(0);
}

.start-icon {
    font-size: 18px;
}

.taskbar-items {
    flex: 1;
    display: flex;
    gap: 6px;
    margin: 0 10px;
}

.taskbar-item {
    background: linear-gradient(to bottom, #6d4c41 0%, #5d4037 100%);
    border: 3px solid;
    border-color: #795548 #4e342e #4e342e #795548;
    padding: 6px 14px;
    color: #ffecb3;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
    transition: all 0.2s;
    border-radius: 6px;
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #4e342e 0%, #3e2723 100%);
    border-color: #3e2723 #795548 #795548 #3e2723;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.taskbar-icon {
    font-size: 16px;
}

.taskbar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #4e342e;
    height: 34px;
    color: #ffecb3;
    font-size: 11px;
    border-radius: 6px;
}

.tray-icon {
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.tray-icon:hover {
    transform: scale(1.2);
}

.tray-time {
    font-family: 'Comic Neue', monospace;
    font-weight: bold;
}

/* Scrollbar Styling - Jungle Theme */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #3e2723;
    border-left: 2px solid #4e342e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #66bb6a 0%, #4caf50 50%, #66bb6a 100%);
    border: 2px solid;
    border-color: #81c784 #2e7d32 #2e7d32 #81c784;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, #81c784 0%, #66bb6a 50%, #81c784 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .window {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .app-title {
        font-size: 28px;
    }
    
    .gorilla-logo {
        font-size: 64px;
    }
    
    .info-panel {
        flex-direction: column;
    }
    
    .taskbar-text {
        display: none;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 3px;
    }
    
    .status-section {
        border-right: none;
        border-bottom: 2px solid #4e342e;
    }
}
