/* Router Specific Styles */
.router-content {
    max-width: 1400px;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-item .status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Command Panel */
.command-panel {
    margin: 4rem 0;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.command-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(167, 139, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
    transform: translateY(-5px) scale(1.02);
}

.command-card:hover::before {
    opacity: 1;
}

.command-icon {
    color: var(--primary-purple);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.command-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.command-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.command-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-top: 1px solid var(--primary-purple);
}

.command-card:hover .command-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.command-hover-info strong {
    color: var(--primary-purple);
}

/* AI Terminal Section */
.ai-terminal-section {
    margin: 4rem 0;
}

.terminal-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-purple);
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.3);
}

.terminal-output {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.terminal-line {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    animation: fadeInLine 0.3s ease;
}

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

.terminal-line.system-ready {
    color: var(--primary-purple);
    font-weight: bold;
}

.terminal-line.error {
    color: var(--primary-pink);
}

.terminal-line.success {
    color: var(--primary-purple);
}

.terminal-prompt {
    color: var(--primary-purple);
    font-weight: bold;
}

.terminal-text {
    color: var(--text-primary);
    flex: 1;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-purple);
    margin-bottom: 1rem;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
}

.terminal-input::placeholder {
    color: var(--text-secondary);
}

.execute-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-purple);
    color: var(--bg-dark);
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.execute-btn:hover {
    background: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.execute-btn:active {
    transform: scale(0.95);
}

.execute-btn.loading {
    background: var(--text-secondary);
    cursor: not-allowed;
}

.quick-commands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-cmd {
    padding: 0.5rem 1rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.quick-cmd:hover {
    background: var(--primary-purple);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Output Section */
.output-section {
    margin: 4rem 0;
    animation: slideIn 0.5s ease;
}

.output-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-cyan);
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
}

.output-content {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    white-space: pre-wrap;
}

.output-content code {
    display: block;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-left: 3px solid var(--primary-purple);
    margin: 1rem 0;
    overflow-x: auto;
}

.copy-output-btn,
.download-btn {
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    margin-left: 1rem;
}

.copy-output-btn:hover,
.download-btn:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

/* Examples Section */
.examples-section {
    margin: 4rem 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.example-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.3);
    transform: translateY(-3px);
}

.example-card h4 {
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.example-card code {
    display: block;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-left: 3px solid var(--primary-purple);
    margin: 1rem 0;
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.example-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recent Section */
.recent-section {
    margin: 4rem 0;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recent-item:hover {
    border-color: var(--primary-purple);
    background: var(--bg-hover);
    transform: translateX(10px);
}

.recent-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.recent-desc {
    color: var(--text-primary);
    flex: 1;
    margin-left: 2rem;
}

.recent-type {
    color: var(--primary-purple);
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid var(--primary-purple);
    font-size: 0.85rem;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(167, 139, 250, 0.3);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Scrollbar Styling */
.terminal-output::-webkit-scrollbar,
.output-container::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track,
.output-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.terminal-output::-webkit-scrollbar-thumb,
.output-container::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover,
.output-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* Responsive */
@media (max-width: 768px) {
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .terminal-input-container {
        flex-direction: column;
    }
    
    .execute-btn {
        width: 100%;
    }
}
