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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e6e6e6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.subtitle {
    color: #888;
    font-size: 1.1em;
}

.target-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.target-input {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border: 2px solid #00ff88;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.target-input:focus {
    outline: none;
    border-color: #00ccff;
    box-shadow: 0 0 15px rgba(0, 204, 255, 0.3);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.tool-card h3 {
    color: #00ccff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card p {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tool-card .command {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85em;
    color: #00ff88;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.output-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.output-header h2 {
    color: #00ff88;
}

.output-header div {
    display: flex;
    gap: 10px;
    align-items: center;
}

#clearOutput {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
}

#clearOutput:hover {
    background: #ff3742;
}

#consultOutput {
    background: #ffa502;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s ease;
}

#consultOutput:hover {
    background: #ff9900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 2, 0.3);
}

#output {
    background: #1a1a1a;
    color: #00ff88;
    padding: 20px;
    border-radius: 10px;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #333;
}

.consultation-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.consultation-input textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #00ccff;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: monospace;
    resize: vertical;
    margin-bottom: 15px;
}

.consultation-options {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.consultation-options select {
    padding: 10px;
    border: 1px solid #00ff88;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.consultation-options button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
}

.consultation-options button:first-of-type {
    background: #00ff88;
    color: #000;
}

.consultation-options button:last-of-type {
    background: #ff4757;
    color: white;
}

.ai-response {
    margin-top: 20px;
    margin-bottom: 20px;
}

#aiOutput {
    background: #1a1a1a;
    color: #00ccff;
    padding: 20px;
    border-radius: 10px;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #333;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    color: #888;
    font-size: 0.9em;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #333;
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success { color: #00ff88; }
.error { color: #ff4757; }
.warning { color: #ffa502; }

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .target-input {
        font-size: 14px;
    }
    
    .consultation-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .consultation-options select,
    .consultation-options button {
        width: 100%;
    }

    .output-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .output-header div {
        flex-direction: column;
        gap: 8px;
    }
    
    #consultOutput {
        margin-left: 0;
        width: 100%;
    }
}