:root {
    --bg: #0f0f12;
    --sidebar: #18181b;
    --accent: #22c55e; /* Cyber Green */
    --text: #e4e4e7;
    --text-dim: #a1a1aa;
    --border: #27272a;
    --panel: #1e1e22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background-color: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-left: 10px;
}
.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    transition: 0.2s;
}
.nav-btn:hover { background-color: #27272a; color: white; }
.nav-btn.active {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

/* MAIN CONTENT */
.content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.tool-panel { display: none; }
.tool-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2 { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; color: var(--accent); }

/* INPUTS */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 400px;
}
textarea {
    width: 100%;
    height: 100%;
    background-color: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    resize: none;
}
textarea:focus { outline: 1px solid var(--accent); }

.controls { margin-top: 15px; display: flex; gap: 10px; }
.action-btn {
    background-color: var(--accent);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.action-btn.secondary { background-color: var(--border); color: white; }
.action-btn:hover { opacity: 0.9; }

/* PX CONVERTER */
.converter-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--panel);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.input-group { display: flex; flex-direction: column; flex: 1; }
.input-group label { margin-bottom: 8px; color: var(--text-dim); }
.input-group input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: white;
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 6px;
}
.settings { margin-top: 20px; color: var(--text-dim); }
.settings input { background: var(--panel); border: 1px solid var(--border); color: white; width: 60px; padding: 5px; }

/* SHADOW GEN */
.shadow-workspace { display: flex; gap: 40px; margin-top: 20px; }
.controls-panel { width: 300px; display: flex; flex-direction: column; gap: 15px; }
.preview-panel {
    flex: 1;
    background: white; /* Light bg to see shadow */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}
.preview-box {
    width: 150px;
    height: 150px;
    background-color: var(--accent);
    border-radius: 10px;
}
.code-output {
    background: var(--panel);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
}
input[type=range] { width: 100%; cursor: pointer; accent-color: var(--accent); }

/* MOBILE */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
    .split-view { grid-template-columns: 1fr; height: auto; }
    textarea { height: 200px; }
    .shadow-workspace { flex-direction: column; }
}
