/* Emerald City Design System - Data Formatter */
:root {
    --bg-dark: #050a05;
    --emerald-primary: #00ff88;
    --emerald-dark: #008844;
    --emerald-glow: rgba(0, 255, 136, 0.4);
    --text-main: #e0ffe0;
    --text-dim: #88aa88;
    --card-bg: rgba(0, 20, 10, 0.8);
    --border-emerald: rgba(0, 255, 136, 0.2);
    --syntax-key: #00ff88;
    --syntax-string: #aaffdd;
    --syntax-number: #66ffaa;
    --syntax-boolean: #00ccff;
    --syntax-null: #ff5555;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    background: linear-gradient(135deg, #00ff88, #00bbff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 10px var(--emerald-glow));
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-emerald);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Sidebar Navigation */
.sidebar {
    background: rgba(0, 30, 20, 0.5);
    padding: 30px 0;
    border-right: 1px solid var(--border-emerald);
}

.nav-item {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(0, 255, 136, 0.05);
    color: var(--emerald-primary);
}

.nav-item.active {
    border-left-color: var(--emerald-primary);
    background: rgba(0, 255, 136, 0.1);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Main Content Area */
.main-area {
    padding: 40px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.editor-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--emerald-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-container {
    position: relative;
    border: 1px solid var(--border-emerald);
    border-radius: 12px;
    overflow: hidden;
    background: #000a05;
}

textarea {
    width: 100%;
    height: 500px;
    background: transparent;
    color: #aaffdd;
    border: none;
    padding: 20px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    line-height: 1.5;
    outline: none;
}

.action-bar {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--emerald-primary);
    color: #001a10;
    border: none;
    box-shadow: 0 0 15px var(--emerald-glow);
}

.btn-primary:hover {
    background: #00ffaa;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--emerald-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--emerald-primary);
    color: var(--emerald-primary);
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Info Sections */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-emerald);
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--emerald-primary);
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--emerald-primary);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
}

.info-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 15px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-emerald);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--emerald-primary);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-dim);
    display: none;
}

footer {
    margin-top: auto;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-emerald);
    background: rgba(0, 10, 5, 0.5);
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--emerald-primary);
    color: #001a10;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    .nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .nav-item.active {
        border-bottom-color: var(--emerald-primary);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .main-area {
        padding: 20px;
    }

    .action-bar .btn {
        width: 100%;
    }
}