:root {
    --bg-color: #040914; /* Very dark background */
    --panel-bg: #0b1121; /* Slightly lighter for panels */
    --border-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #64748b;
    --accent-color: #0ea5e9;
    --accent-hover: #0284c7;
    --card-bg: rgba(15, 23, 42, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}
.logo span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    cursor: pointer;
}
.actions {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
}
.icon-placeholder {
    cursor: pointer;
    transition: color 0.2s;
}
.icon-placeholder:hover {
    color: var(--text-primary);
}
.back-home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.back-home-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - 50px);
    overflow: hidden;
}

.left-col, .right-col {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.col-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Left Col - Input */
.form-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    margin-bottom: 1rem;
    z-index: 2;
}

textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1px solid #0ea5e9; /* Blue border */
    border-radius: 8px;
    padding: 1rem;
    color: #93c5fd; /* Blue text */
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    outline: none;
    box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.05);
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.sparkle {
    position: absolute;
    color: #fef08a; /* yellow spark */
    animation: float 3s infinite ease-in-out alternate;
    opacity: 0.8;
}
.s1 { top: 10%; left: -2%; font-size: 1.5rem; }
.s2 { top: 30%; left: -5%; font-size: 1rem; animation-delay: 1s; }
.s3 { top: 60%; left: 10%; font-size: 1.2rem; animation-delay: 2s; color: #fde047; }
.s4 { top: 80%; left: 30%; font-size: 0.8rem; animation-delay: 0.5s; color: #a3e635; }
.s5 { top: 40%; left: 20%; font-size: 0.8rem; animation-delay: 1.5s; }

@keyframes float {
    from { transform: translateY(0px) scale(1); opacity: 0.6; }
    to { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Button */
.btn-primary {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.08);
}

/* Right Col - Cards Stack */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mini-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
}

.mini-card .label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.mini-card .value {
    font-size: 0.85rem;
    color: var(--text-primary);
    word-break: break-word;
}

.split-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Loader */
.loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}
::selection {
    background: rgba(14, 165, 233, 0.4);
}
