/* --- SHARED VARIABLES FROM INDEX --- */
:root {
    --bg-color: #030509;
    --text-color: #ffffff;
    --accent-color: #4c51bf; 
    --accent-light: #a78bfa; 
    --card-bg: #0d1117;
    --card-border: #30363d;
    --text-gray: #9ca3af;    
    --nav-height: 80px;      
}

/* --- GLOBAL STYLES --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    background: rgba(3, 5, 9, 0.8);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-logo { 
    font-weight: 800; 
    font-size: 1.4rem; 
    color: var(--accent-light);
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 65px; 
}

.nav-logo img {
    height: 75px; 
    position: absolute;
    left: -15px; 
    top: 50%;
    transform: translateY(-50%); 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover { opacity: 1; color: var(--accent-light); }

/* --- WIDE EDITOR LAYOUT --- */
.editor-wide-container { 
    width: 95%; 
    max-width: 1200px; /* Wider window as requested */
    background: var(--card-bg); 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6); 
    border: 1px solid var(--card-border); 
    margin-top: calc(var(--nav-height) + 40px); 
    margin-bottom: 60px;
    box-sizing: border-box;
}

h2 { margin-top: 0; color: var(--accent-light); letter-spacing: -1px; }

.hint { 
    background: rgba(167, 139, 250, 0.05); 
    padding: 15px 20px; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    border-left: 4px solid var(--accent-light); 
    font-size: 0.95rem; 
    color: var(--text-gray); 
}

code { color: var(--accent-light); background: #000; padding: 2px 6px; border-radius: 4px; }

/* SIDE-BY-SIDE GRID */
.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 25px;
}

.editor-column label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    font-weight: bold;
}

#cbin, #cbout {
    width: 100%;
    height: 400px; /* Taller textareas */
    background: #010204;
    color: #e0e0e0;
    border: 1px solid var(--card-border);
    padding: 20px;
    font-family: 'Consolas', monospace;
    box-sizing: border-box;
    border-radius: 12px;
    resize: none;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

#cbin:focus { border-color: var(--accent-color); box-shadow: 0 0 15px rgba(76, 81, 191, 0.2); }
#cbout { color: #00d4ff; background: #000; cursor: default; }

/* BUTTONS */
.btn-group { display: flex; gap: 15px; margin-top: 30px; }

button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.gen-btn { background: var(--accent-color); color: white; }
.gen-btn:hover { background: var(--accent-light); transform: translateY(-3px); }

.copy-btn { background: #1a1d23; color: #fff; border: 1px solid var(--card-border); }
.copy-btn:hover { background: #28a745; border-color: #28a745; transform: translateY(-3px); }

/* Responsive for tablets/phones */
@media (max-width: 900px) {
    .editor-grid { grid-template-columns: 1fr; }
    #cbin, #cbout { height: 250px; }
}