:root {
    --primary-color: #6E56CF;
    --primary-light: #9E8CFC;
    --primary-dark: #4B3B93;
    --accent-color: #00C8FF;
    --accent-light: #4DDBFF;
    --accent-dark: #0092B8;
    --success-color: #00C48C;
    --warning-color: #FFB800;
    --error-color: #FF5470;
    --dark-bg: #0F0F12;
    --dark-card: #16161A;
    --dark-border: #27272A;
    --dark-text: #E2E2E4;
    --dark-text-secondary: #A0A0A6;
    --code-bg: #1A1A1F;
    --glow-effect: 0 0 10px rgba(110, 86, 207, 0.5), 0 0 20px rgba(110, 86, 207, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--dark-card);
    border-bottom: 1px solid var(--dark-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary-color);
}

.logo-image {
    height: 32px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(110, 86, 207, 0.1) 0%,
        rgba(16, 16, 22, 0) 70%
    );
    z-index: -1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--dark-text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background-color: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
}

.card-description {
    color: var(--dark-text-secondary);
    margin-bottom: 1rem;
}

.card-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: var(--glow-effect);
}

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

.btn-accent:hover {
    background-color: var(--accent-light);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.5), 0 0 20px rgba(0, 200, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
}

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

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

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

.btn-error:hover {
    background-color: #ff7090;
}

/* Disabled button style */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #3a3a43;
    color: #a0a0a6;
    border-color: transparent;
    box-shadow: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none;
    box-shadow: none;
    background-color: #3a3a43;
}

.btn-success:disabled,
.btn-success[disabled] {
    background-color: #3a3a43;
    color: #a0a0a6;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background-color: var(--dark-bg);
    border: 1px solid var(--dark-border);
    color: var(--dark-text);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(110, 86, 207, 0.25);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

/* Code Editor */
.code-editor {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background-color: var(--code-bg);
    border-radius: 6px;
    border: 1px solid var(--dark-border);
    padding: 1rem;
    overflow: auto;
    min-height: 300px;
    max-height: 600px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(110, 86, 207, 0.15);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-border);
    transition: all 0.2s ease;
}

.table th {
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    background-color: rgba(22, 22, 26, 0.7);
    border-bottom: 2px solid var(--primary-color);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(110, 86, 207, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
}

.table tbody tr:hover td {
    border-bottom: 1px solid var(--primary-light);
}

.table td:last-child {
    text-align: right;
}

/* Action buttons container in table */
.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* Make sure all buttons in table have consistent size */
.table-actions .btn {
    min-width: 80px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.table-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Tool ID styling */
.tool-id {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.2);
    font-size: 0.85rem;
}

.copy-icon {
    transition: transform 0.3s ease;
}

.copy-icon:hover {
    transform: scale(1.2);
    color: var(--accent-color) !important;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(0, 196, 140, 0.2);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(255, 184, 0, 0.2);
    color: var(--warning-color);
}

.badge-error {
    background-color: rgba(255, 84, 112, 0.2);
    color: var(--error-color);
}

/* JSON Display */
.json-display {
    background-color: var(--code-bg);
    border-radius: 6px;
    padding: 1rem;
    overflow: auto;
    max-height: 400px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

.json-key {
    color: var(--primary-light);
}

.json-string {
    color: var(--success-color);
}

.json-number {
    color: var(--accent-color);
}

.json-boolean {
    color: var(--warning-color);
}

.json-null {
    color: var(--error-color);
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-text-secondary);
    transition: color 0.2s;
    position: relative;
}

.tab:hover {
    color: var(--dark-text);
}

.tab.active {
    color: var(--primary-light);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Loader */
.loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(110, 86, 207, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Notification */
.notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: var(--dark-card);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, opacity 0.3s;
    transform: translateY(100%);
    opacity: 0;
    max-width: 350px;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--dark-text-secondary);
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Animations and effects */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(0, 200, 255, 0.5), 0 0 10px rgba(0, 200, 255, 0.2); }
    50% { box-shadow: 0 0 15px rgba(0, 200, 255, 0.7), 0 0 20px rgba(0, 200, 255, 0.4); }
    100% { box-shadow: 0 0 5px rgba(0, 200, 255, 0.5), 0 0 10px rgba(0, 200, 255, 0.2); }
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-border:hover::before {
    opacity: 1;
}

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

.grid-col-2 {
    grid-column: span 2;
}

.grid-col-3 {
    grid-column: span 3;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-card);
    color: var(--dark-text);
    padding: 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Terminal-like output display */
.terminal {
    background-color: var(--code-bg);
    color: var(--dark-text);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    padding: 1rem;
    border-radius: 6px;
    overflow: auto;
    white-space: pre-wrap;
    max-height: 400px;
    border: 1px solid var(--dark-border);
}

/* Background grid effect */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(39, 39, 42, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(39, 39, 42, 0.05) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
} 