::-webkit-scrollbar { display: none !important; }
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }

:root {
    --bg: #F4F4F5;
    --nav-bg: #09090b;
    --surface: #FFFFFF;
    --text-main: #09090b;
    --text-muted: #71717a;
    --border: #E4E4E7;
    --btn: #18181b;
    --action-red: #ef4444;
    --radius-lg: 12px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden; 
    background-color: var(--bg);
    color: var(--text-main);
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.mobile-header {
    display: none;
    background: var(--nav-bg);
    color: white;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    box-sizing: border-box;
}

.logo { font-weight: 800; font-size: 1.25rem; }

.sidebar {
    width: 260px;
    background: var(--nav-bg);
    color: white;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto; 
}

.sidebar-header { padding: 0 1.5rem 1rem; }
.sidebar h2 { font-size: 1.5rem; margin: 0; cursor: pointer; }

/* Custom Sidebar Dropdown UI */
.custom-dropdown { position: relative; width: 100%; margin-bottom: 1.5rem; }
.custom-dropdown-trigger { 
    background: rgba(255,255,255,0.05); color: #ffffff; border: 1px solid rgba(255,255,255,0.1); 
    padding: 0.85rem 1rem; border-radius: 8px; display: flex; justify-content: space-between; 
    align-items: center; cursor: pointer; font-size: 0.95rem; font-weight: 600; 
    transition: background 0.2s; user-select: none;
}
.custom-dropdown-trigger:hover { background: rgba(255,255,255,0.1); }
.custom-dropdown-menu { 
    position: absolute; top: calc(100% + 6px); left: 0; width: 100%; 
    background: #18181b; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; 
    overflow: hidden; display: none; z-index: 1000; box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
}
.custom-dropdown-menu.open { display: block; animation: popIn 0.15s ease-out; }
.custom-dropdown-item { 
    padding: 0.85rem 1rem; color: #a1a1aa; cursor: pointer; font-size: 0.9rem; font-weight: 600; 
    text-decoration: none; display: flex; align-items: center; justify-content: space-between; 
    transition: all 0.2s;
}
.custom-dropdown-item:hover { background: rgba(255,255,255,0.05); color: #ffffff; }
.custom-dropdown-item.active { color: #ffffff; background: rgba(255,255,255,0.02); }

.nav-category {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #52525b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-link {
    color: #a1a1aa;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    transition: 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link .material-symbols-rounded { font-size: 1.2rem; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,0.05); }

.content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 1100px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box; 
}

.tool-section { display: none; padding-bottom: 4rem; }
.tool-section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.animate-pop { animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes popIn { 0% { transform: scale(0.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.tool-header h1 { margin: 0 0 0.25rem 0; font-size: 1.75rem; font-weight: 800;}
.tool-header p { color: var(--text-muted); margin: 0 0 2rem 0; font-size: 1.05rem; }

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.panel-header {
    background: #FAFAFA;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: none;
    transition: 0.2s;
}
.copy-btn:hover { color: var(--text-main); }
.copy-btn .material-symbols-rounded { font-size: 1rem; }

input[type="text"], input[type="number"], input[type="datetime-local"], textarea, select {
    width: 100%;
    padding: 1rem;
    border: none;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: inherit;
    background: transparent;
    resize: none;
}
textarea:focus, input:focus, select:focus { outline: none; }

.code-font { font-family: 'Menlo', 'Monaco', 'Courier New', monospace; font-size: 0.9rem !important; }
.code-output { padding: 1rem; font-family: 'Menlo', 'Monaco', monospace; font-size: 0.9rem; white-space: pre-wrap; word-break: break-all; }

.input-group-standard { display: flex; gap: 0.5rem; align-items: stretch; margin-bottom: 1rem; }
.input-group-standard input, .input-group-standard .standard-btn { margin-bottom: 0; }
.button-group { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }

.standard-btn {
    padding: 0.85rem 1.75rem;
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: 0.15s;
    margin-bottom: 1rem;
}
.primary-btn { background: var(--btn); color: white; border-color: var(--btn); }
.standard-btn:active { transform: scale(0.97); }
.standard-btn:hover:not(.primary-btn) { background: #FAFAFA; }
.primary-btn:hover { opacity: 0.9; }

.options-group { display: flex; gap: 1.5rem; align-items: center; font-size: 0.95rem; flex-wrap: wrap; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }
.status-indicator { margin: 1rem 0; font-weight: bold; }

@media (max-width: 768px) {
    .mobile-header { display: flex; }
    .sidebar { position: fixed; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 100; }
    .sidebar.open { transform: translateX(0); }
    .content { padding: 5rem 1.5rem 3rem; }
    .grid-layout { grid-template-columns: 1fr; }
}