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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #00ff00;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.terminal-container {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    0% {
        box-shadow: 0 20px 60px rgba(0, 255, 0, 0.1);
    }
    100% {
        box-shadow: 0 20px 60px rgba(0, 255, 0, 0.2);
    }
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

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

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.close {
    background: #ff5f57;
}

.btn.minimize {
    background: #ffbd2e;
}

.btn.maximize {
    background: #28ca42;
}

.terminal-title {
    margin-left: 20px;
    color: #888;
    font-size: 14px;
}

.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #000;
}

.output::-webkit-scrollbar {
    width: 8px;
}

.output::-webkit-scrollbar-track {
    background: #000;
}

.output::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.line {
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.line.command {
    color: #888;
}

.line.error {
    color: #ff4444;
}

.line.success {
    color: #00ff88;
}

.line.info {
    color: #4488ff;
}

.line.warning {
    color: #ffaa00;
}

.weather-data {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.weather-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.weather-label {
    color: #00ffaa;
}

.weather-value {
    color: #ffffff;
    font-weight: bold;
}

.input-line {
    display: flex;
    align-items: center;
    position: relative;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
    font-weight: bold;
}

#commandInput {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    flex: 1;
    caret-color: transparent;
}

.cursor {
    background: #00ff00;
    width: 2px;
    height: 20px;
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.loading {
    color: #ffaa00;
}

.loading::after {
    content: "";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: "";
    }
    40% {
        content: ".";
    }
    60% {
        content: "..";
    }
    80%, 100% {
        content: "...";
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 90vh;
        border-radius: 0;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    #commandInput {
        font-size: 14px;
    }
    
    .weather-item {
        flex-direction: column;
        gap: 2px;
    }
    
    .weather-value {
        margin-left: 20px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        padding: 8px 15px;
    }
    
    .terminal-title {
        font-size: 12px;
        margin-left: 10px;
    }
    
    .btn {
        width: 10px;
        height: 10px;
    }
    
    .terminal-content {
        padding: 10px;
    }
    
    .line {
        font-size: 14px;
    }
    
    .prompt {
        font-size: 14px;
    }
    
    #commandInput {
        font-size: 14px;
    }
}

/* Additional styling for better UX */
.help-command {
    color: #00aaff;
    font-weight: bold;
}

.location-info {
    color: #ff9900;
    font-style: italic;
}

.temperature {
    color: #ff6666;
    font-size: 18px;
    font-weight: bold;
}

.humidity, .wind {
    color: #66ccff;
}
