/* =========================================
   V L 4 D  HUB - PREMIUM CYBER DESIGN
   ========================================= */

:root {
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --bg-dark: #020205;
    --panel-bg: rgba(10, 10, 18, 0.85);
    --sidebar-bg: #050508;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #888895;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
}

/* --- FUNDALUL TECH (Grid & Glow) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

/* --- APP LAYOUT --- */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* --- SIDEBAR MODERN --- */
.sidebar {
    width: 280px;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    padding-left: 10px;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), #004e92);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.brand-img-logo { width: 100%; height: 100%; object-fit: contain; }
.brand span { font-family: 'Orbitron'; font-weight: 900; font-size: 1.3rem; letter-spacing: 1px; color: #fff; }
.brand span span { color: var(--accent); }

.nav-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    border-radius: 16px;
    transition: 0.3s all ease;
    font-weight: 700;
    margin-bottom: 8px;
}

.nav-btn i { font-size: 1.2rem; }
.nav-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-btn.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent);
    box-shadow: inset 4px 0 0 var(--accent);
}

/* --- MAIN CONTENT AREA --- */
.content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.tab-panel { display: none; animation: slideUp 0.4s ease-out; }
.tab-panel.active { display: block; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header h1 {
    font-family: 'Orbitron';
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 900;
    text-transform: uppercase;
}

.panel-header span { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }

/* --- CONTAINERS (GLASS EFFECT) --- */
.glass-container {
    background: var(--panel-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* --- INPUTS & FORMS --- */
.input-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

input[type="text"], textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 16px;
    color: white;
    margin-bottom: 25px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* --- CONTROLS GRID --- */
.controls-grid-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.control-card {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* --- CULORI & SLIDERS --- */
.picker-list { display: flex; flex-direction: column; gap: 15px; }
.color-row { display: flex; align-items: center; gap: 12px; }

.smk-picker {
    flex: 1; -webkit-appearance: none; height: 8px; border-radius: 10px;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    outline: none;
}
.smk-picker::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    background: #fff; border: 3px solid var(--bg-dark); border-radius: 50%; cursor: pointer;
}

.add-color-btn {
    background: var(--accent); color: #000; border: none;
    padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 0.7rem; cursor: pointer;
}

.remove-btn { color: #ff4d4d; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0 5px; }

/* --- BUTOANE FORMAT (B, I, U) --- */
.format-grid { display: flex; gap: 12px; }
.fmt-btn {
    flex: 1; padding: 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border); color: #fff;
    border-radius: 12px; cursor: pointer; font-weight: 900; font-size: 1.2rem;
    transition: 0.3s;
}

.fmt-btn.active {
    background: var(--accent); color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- PREVIEW BOX --- */
.preview-display {
    background: #000;
    min-height: 150px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* --- EMOJI GRID --- */
.emoji-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
}

.emoji-item {
    font-size: 2rem;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.emoji-item:hover {
    background: var(--accent);
    transform: scale(1.15) rotate(5deg);
    color: #000;
}

/* --- FANCY FONT ITEMS --- */
.fancy-grid { display: flex; flex-direction: column; gap: 12px; }
.f-item {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: 0.3s;
    cursor: pointer;
}

.f-item:hover {
    border-color: var(--accent);
    background: rgba(0, 210, 255, 0.05);
    transform: translateX(5px);
}

.f-style-name { color: var(--accent); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; display: block; }
.f-text-val { font-size: 1.3rem; color: #fff; }

/* --- UTILS --- */
.copy-btn {
    width: 100%; padding: 22px; background: var(--accent); border: none;
    border-radius: 20px; color: #000; font-weight: 900; font-family: 'Orbitron';
    text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s;
}

.copy-btn:hover { filter: brightness(1.2); transform: translateY(-3px); box-shadow: 0 10px 20px var(--accent-glow); }

#toast {
    position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #000; padding: 16px 40px;
    border-radius: 50px; font-weight: 800; transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000; box-shadow: 0 10px 30px var(--accent-glow);
}

#toast.show { bottom: 40px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.online { color: #00ffa3; text-shadow: 0 0 10px rgba(0,255,163,0.3); }