:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --editor-bg: #ffffff;
    --success-color: #10b981;
    --editor-line-numbers: #94a3b8;
    --json-string: #059669;
    --json-number: #6366f1;
    --json-boolean: #8b5cf6;
    --json-null: #ef4444;
    --json-key: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

.sidebar-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    background: linear-gradient(45deg, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.examples-section {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.examples-section h2 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.examples-section h2 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background-color: var(--bg-color);
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.example-item:hover {
    background-color: #f1f5f9;
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.example-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.example-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.example-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.example-count i {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.example-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.example-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 24px;
    overflow: hidden;
}

.editor-section {
    background-color: var(--editor-bg);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.editor-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-radius: 16px 16px 0 0;
}

.editor-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.editor-container {
    flex: 1;
    padding: 24px;
    overflow: hidden;
}

.json-editor {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fafafa;
    resize: none;
    tab-size: 2;
}

.json-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Button Styles */
.primary-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 
        0 4px 6px -1px var(--primary-glow),
        0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 8px -1px var(--primary-glow),
        0 3px 6px -1px rgba(0, 0, 0, 0.1);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px -1px var(--primary-glow),
        0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.primary-button i {
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

/* Add a subtle pattern overlay */
.primary-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Add a glassy effect */
.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 6px 6px 12px 12px;
    pointer-events: none;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.version {
    opacity: 0.8;
}

.example-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.editor-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.editor-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
}

.editor-title h2 i {
    color: var(--primary-color);
}

.editor-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secondary-button {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Notification styles */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-left: 4px solid var(--primary-color);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    font-size: 1.25rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .main-content {
        height: calc(100vh - 300px);
    }
}

.constructor-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.constructor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.constructor-link:hover {
    background-color: #1d4ed8;
}

.constructor-link i {
    font-size: 1rem;
} 