/* Self-Hosted Fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); }

:root {
    --primary-glow: #00C9FF; --dark-bg: #1a202c; --medium-bg: #2d3748;
    --light-text: #e2e8f0; --medium-text: #a0aec0; --border-color: #4a5568;
    --accent-color: #6366f1; --accent-hover: #4f46e5;
    --font-main: 'Inter', sans-serif; --font-title: 'Orbitron', sans-serif;
    --font-code: 'Roboto Mono', monospace; 
    --menu-width: 200px;
}

html { height: 100%; width: 100%; overflow-x: hidden; }
body { font-family: var(--font-main); background-color: var(--dark-bg); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3e%3crect width='10' height='10' fill='%231a202c'/%3e%3cpath d='M0 0L10 10M10 0L0 10' stroke='%232d3748' stroke-width='0.2'/%3e%3c/svg%3e"); min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; color: var(--light-text); display: flex; }

/* Left Menu Template Styles */
.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.9); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); padding: 0 20px; box-sizing: border-box; z-index: 1001; font-weight: 600; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 400; color: #00C9FF; text-decoration: none; text-shadow: 0 0 2px #00C9FF, 0 0 3px rgba(0, 201, 255, 0.6); display: block; padding: 8px 0; transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; }
.left-menu a:hover, .left-menu a:focus  { color: #fff; text-shadow: 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, 0.5); outline: none; }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.1); border-radius: 5px; padding-left: 10px; padding-right: 10px; }

.main-content-wrapper { flex-grow: 1; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; box-sizing: border-box; width: calc(100% - var(--menu-width)); margin-left: var(--menu-width); }
.breadcrumbs { margin-bottom: 2rem; width: 100%; max-width: 800px; text-align: left; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--medium-text); }
.breadcrumbs li:not(:last-child)::after { content: '>'; margin: 0 0.75rem; }
.breadcrumbs a { color: var(--medium-text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-glow); }
h1 { color: var(--primary-glow); font-family: var(--font-title); text-align: center; margin-top: 0; margin-bottom: 25px; text-shadow: 0 0 5px var(--primary-glow), 0 0 10px rgba(0, 201, 255, 0.4); font-size: 2.5em; }
.mobile-header, .menu-overlay { display: none; }
.tool-container { background-color: var(--medium-bg); border-radius: 1rem; box-shadow: inset 0 0 10px rgba(0, 190, 255, 0.1), 0 15px 20px -5px rgba(0, 0, 0, 0.4); border: 1px solid rgba(0, 190, 255, 0.1); padding: 1.5rem; width: 100%; max-width: 800px; box-sizing: border-box; color: var(--light-text); }
.tool-tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 1.5rem; }
.tool-tabs button { font-family: var(--font-title); background: none; border: none; color: var(--medium-text); padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.tool-tabs button:hover { color: var(--light-text); background-color: rgba(0, 201, 255, 0.1); }
.tool-tabs button.active { color: var(--light-text); border-bottom-color: var(--primary-glow); text-shadow: 0 0 3px var(--primary-glow); }
.tool-pane { display: none; }
.tool-pane.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 1.5rem; }
.form-group.result-group { margin-top: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--medium-text); font-size: 0.9em; font-family: var(--font-title); margin-bottom: 0.5rem; }
textarea, input[type="text"] { font-family: var(--font-code); width: 100%; background-color: var(--dark-bg); color: var(--light-text); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 0.75rem; font-size: 1rem; box-sizing: border-box; transition: all 0.2s ease; }
textarea { resize: vertical; min-height: 150px; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--primary-glow); box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.3); }
.controls { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.controls button, .calc-button { font-family: var(--font-title); background-color: var(--border-color); color: var(--light-text); border: none; padding: 0.75rem 1.25rem; border-radius: 0.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: all 0.2s ease; }
.controls button:hover, .calc-button:hover { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); }
.calc-button { background-color: var(--accent-color); color: #fff; width: 100%; font-size: 1rem; }
.calc-button:hover { background-color: var(--accent-hover); }
.result-area { margin-top: 1.5rem; background-color: var(--dark-bg); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 1.5rem; }
.result-area.hidden { display: none; }
.result-area table { width: 100%; border-collapse: collapse; }
.result-area th, .result-area td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--border-color); }
.result-area th { font-family: var(--font-title); color: var(--medium-text); width: 35%; }
.result-area td { word-break: break-all; color: var(--light-text); }
.result-area td code { font-family: var(--font-code); background-color: var(--medium-bg); padding: 2px 5px; border-radius: 4px; }
.result-area tr:last-child th, .result-area tr:last-child td { border-bottom: none; }
.error-message { color: #fca5a5; background-color: #450a0a; border: 1px solid #7f1d1d; padding: 1rem; border-radius: 0.5rem; }
.ip-counter { margin-bottom: 1rem; color: var(--medium-text); }
.share-section { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #4a5568; }
.share-section h2 { font-family: 'Orbitron', sans-serif; color: #a0aec0; font-size: 1rem; font-weight: 400; margin: 0 0 1rem 0; text-transform: uppercase; letter-spacing: 1px; }
.share-buttons-container { display: flex; justify-content: center; gap: 1rem; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: #2d3748; border: 1px solid #4a5568; border-radius: 50%; color: #a0aec0; text-decoration: none; transition: all 0.2s ease; }
.share-btn svg { width: 22px; height: 22px; fill: currentColor; }
.share-btn:hover { color: #1a2c3a; background-color: var(--primary-glow); border-color: var(--primary-glow); transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 201, 255, 0.2); }

@media (max-width: 992px) {
    body { flex-direction: column; }
    body.menu-open { overflow: hidden; }
    .main-content-wrapper { padding: 80px 20px 40px; width: 100%; box-sizing: border-box; margin-left: 0; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; background-color: #1a202c; border-bottom: 1px solid #4a5568; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; cursor: pointer; }
    .hamburger-btn .line { display: block; width: 24px; height: 3px; background-color: #e2e8f0; margin: 5px 0; }
    .mobile-title { font-family: var(--font-title); font-size: 1.2rem; }
    .left-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; height: 100vh; width: 250px; min-width: 250px; }
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    h1 { font-size: 2em; }
    .tool-container { padding: 1rem; }
    .tool-tabs button { padding: 0.75rem; font-size: 0.9rem; }
    .result-area th { width: 30%; font-size: 0.9rem; }
}