/**
 * FreeLLMAPI - Futuristic Cyberpunk Design
 * Inspired by 2Advanced Studio aesthetic
 */

:root {
    /* Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-primary: #00ffff;
    --accent-secondary: #ff00ff;
    --accent-tertiary: #7b2cbf;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4466;
    --border-color: rgba(0, 255, 255, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-bg: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(123, 44, 191, 0.05) 100%);
    
    /* Effects */
    --glow-primary: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-secondary: 0 0 30px rgba(255, 0, 255, 0.3);
    --scanline-opacity: 0.03;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background Grid */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Scanline Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, var(--scanline-opacity)),
        rgba(0, 0, 0, var(--scanline-opacity)) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Navigation */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 255, 255, 0.1);
}

.nav-brand .logo-glitch {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    animation: glitch 3s infinite;
}

.logo-glitch .accent {
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    2% { transform: translate(-2px, 2px); }
    4% { transform: translate(2px, -2px); }
    6% { transform: translate(0); }
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main Content */
.cyber-main {
    min-height: 100vh;
    padding: 100px 40px 40px;
    position: relative;
    z-index: 1;
}

/* Message Banner */
.message-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 200;
    animation: slideDown 0.3s ease;
    max-width: 90%;
}

.message-banner.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.message-banner.error {
    background: rgba(255, 68, 102, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

@keyframes slideDown {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Titles */
.cyber-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 10px;
    position: relative;
}

.title-glow {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-primary);
}

/* Chat Container */
.chat-container {
    max-width: 1000px;
    margin: 0 auto;
}

.chat-header {
    text-align: center;
    margin-bottom: 40px;
}

.chat-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.chat-messages {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.welcome-message {
    text-align: center;
    padding: 40px;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

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

/* Messages */
.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 20px;
    line-height: 1.8;
}

.message-user .message-avatar {
    background: var(--accent-tertiary);
}

.message-assistant .message-avatar {
    background: var(--accent-primary);
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin: 0 3px;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* Chat Input */
.chat-input-container {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.model-selector {
    margin-bottom: 15px;
}

.model-selector label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-right: 10px;
}

.model-selector select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.chat-input-form {
    display: flex;
    gap: 15px;
}

.chat-input-form textarea {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chat-input-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.send-button {
    background: var(--gradient-primary);
    border: none;
    color: var(--bg-primary);
    padding: 0 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-loader {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.input-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Chat Stats */
.chat-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: var(--glow-primary);
}

/* Footer */
.cyber-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 15px 40px;
    text-align: center;
    z-index: 100;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-stats {
    margin-top: 5px;
}

.footer-stats span {
    color: var(--accent-primary);
}

/* Setup Page */
.setup-container {
    max-width: 1400px;
    margin: 0 auto;
}

.setup-header {
    text-align: center;
    margin-bottom: 40px;
}

.setup-subtitle {
    color: var(--text-secondary);
}

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

.intro-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.intro-card h2 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.provider-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.provider-card:hover::before {
    transform: scaleX(1);
}

.provider-logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

.provider-card h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.provider-limits {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.limit-badge {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.provider-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.provider-steps {
    list-style: none;
    margin-bottom: 20px;
}

.provider-steps li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.provider-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.provider-steps a {
    color: var(--accent-primary);
    text-decoration: none;
}

.provider-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.provider-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

/* Tips Section */
.tips-section,
.faq-section {
    margin-top: 40px;
}

.tips-section h2,
.faq-section h2 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.tip-card h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

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

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--accent-primary);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

.accent-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.accent-link:hover {
    text-decoration: underline;
}

/* Admin Page */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-subtitle {
    color: var(--text-secondary);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 2rem;
    color: var(--accent-primary);
    text-shadow: var(--glow-primary);
}

.stat-info .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.admin-section h2 {
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.unified-key-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.key-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.key-display code {
    flex: 1;
    background: var(--bg-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: var(--accent-primary);
}

.copy-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Forms */
.add-key-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--glow-primary);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

.btn-success {
    background: var(--success);
    color: var(--bg-primary);
}

.btn-warning {
    background: var(--warning);
    color: var(--bg-primary);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Tables */
.keys-table {
    overflow-x: auto;
}

.keys-table table {
    width: 100%;
    border-collapse: collapse;
}

.keys-table th,
.keys-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.keys-table th {
    color: var(--accent-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.keys-table td {
    color: var(--text-secondary);
}

.provider-badge {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.status-badge.status-valid {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.status-badge.status-unknown {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning);
}

.status-badge.status-invalid {
    background: rgba(255, 68, 102, 0.1);
    color: var(--error);
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.model-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.model-card.enabled {
    border-color: var(--success);
}

.model-card.disabled {
    opacity: 0.6;
    border-color: var(--error);
}

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

.model-header h3 {
    color: var(--accent-primary);
    font-size: 1rem;
}

.model-platform {
    background: rgba(0, 255, 255, 0.1);
    color: var(--accent-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.model-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-secondary);
}

.model-toggle-form {
    text-align: right;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.activity-icon.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
}

.activity-icon.error {
    background: rgba(255, 68, 102, 0.1);
    color: var(--error);
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-weight: bold;
    color: var(--text-primary);
}

.activity-provider {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.85rem;
}

.activity-meta {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-error {
    color: var(--error);
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.empty-state a {
    color: var(--accent-primary);
}

/* API Page */
.api-container {
    max-width: 1200px;
    margin: 0 auto;
}

.api-header {
    text-align: center;
    margin-bottom: 40px;
}

.api-subtitle {
    color: var(--text-secondary);
}

.api-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.api-section h2 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.api-section h3 {
    color: var(--text-primary);
    margin: 25px 0 15px;
    font-size: 1.1rem;
}

.code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-header span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.params-table th,
.params-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.params-table th {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.params-table td {
    color: var(--text-secondary);
}

.params-table code {
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-primary);
}

.limits-info {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.limits-info ul {
    margin-top: 15px;
    padding-left: 20px;
}

.limits-info li {
    color: var(--text-secondary);
    margin: 5px 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .cyber-nav {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .cyber-main {
        padding: 90px 20px 80px;
    }
    
    .chat-input-form {
        flex-direction: column;
    }
    
    .send-button {
        padding: 15px;
    }
    
    .chat-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .provider-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
