/* ===================================
   DEVOPS UTILITY HUB - COMPLETE CSS
   Built by Hitesh
   =================================== */

/* ---- CSS VARIABLES ---- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: #141425;
    --bg-card-hover: #1a1a35;
    --bg-input: #0d0d1a;
    --text-primary: #e4e4f0;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-dark: #4a3db8;
    --gradient: linear-gradient(135deg, #6c5ce7, #00cec9, #fd79a8);
    --gradient-2: linear-gradient(135deg, #6c5ce7, #e84393);
    --gradient-3: linear-gradient(135deg, #00cec9, #0984e3);
    --success: #00b894;
    --error: #ff6b6b;
    --warning: #fdcb6e;
    --info: #74b9ff;
    --border: #1e1e3a;
    --border-light: #2a2a4a;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f5f5ff;
    --bg-secondary: #eeeef8;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0ff;
    --bg-input: #f8f8ff;
    --text-primary: #1a1a2e;
    --text-secondary: #555580;
    --text-muted: #8888aa;
    --border: #d0d0e8;
    --border-light: #e0e0f0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* ---- LOADER ---- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 1.5s infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 10px;
    animation: loadProgress 1.5s ease forwards;
}

@keyframes loadProgress {
    to { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ---- PARTICLES ---- */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(245, 245, 255, 0.9);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo i {
    font-size: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.1);
}

.nav-link i {
    font-size: 0.8rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.github-btn:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO SECTION ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Terminal in hero */
.hero-terminal {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 50px;
}

.terminal-line {
    display: flex;
    gap: 8px;
}

.prompt {
    color: var(--success);
    font-weight: 700;
}

.command {
    color: var(--text-primary);
}

.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 24px;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 50px;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- TOOLS GRID ---- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.yaml-icon { background: rgba(108, 92, 231, 0.15); color: #6c5ce7; }
.converter-icon { background: rgba(0, 206, 201, 0.15); color: #00cec9; }
.docker-icon { background: rgba(9, 132, 227, 0.15); color: #0984e3; }
.compose-icon { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.base64-icon { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; }
.password-icon { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.gitignore-icon { background: rgba(255, 118, 117, 0.15); color: #ff7675; }
.nginx-icon { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.subnet-icon { background: rgba(116, 185, 255, 0.15); color: #74b9ff; }
.cron-icon { background: rgba(162, 155, 254, 0.15); color: #a29bfe; }
.jwt-icon { background: rgba(253, 121, 168, 0.15); color: #fd79a8; }
.regex-icon { background: rgba(129, 236, 236, 0.15); color: #81ecec; }

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---- WORKSPACE / EDITOR ---- */
.tool-workspace,
.converter-workspace,
.generator-workspace,
.base64-workspace,
.password-workspace,
.gitignore-workspace,
.subnet-workspace,
.cron-workspace,
.jwt-workspace,
.regex-workspace,
.compose-workspace {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    gap: 12px;
}

.workspace-tabs {
    display: flex;
    gap: 4px;
}

.ws-tab, .ws-tab-json {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.ws-tab.active, .ws-tab:hover, .ws-tab-json.active, .ws-tab-json:hover {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-light);
    border-color: var(--accent);
}

.workspace-actions {
    display: flex;
    gap: 8px;
}

.ws-btn {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.ws-btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.ws-btn.primary:hover {
    background: var(--accent-dark);
}

.workspace-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.editor-panel, .result-panel {
    display: flex;
    flex-direction: column;
}

.editor-panel {
    border-right: 1px solid var(--border);
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.editor-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.copy-btn, .download-btn {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.78rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover, .download-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.editor-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.line-numbers {
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    min-width: 40px;
    overflow: hidden;
}

.editor-textarea {
    flex: 1;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    min-height: 400px;
}

.editor-textarea::placeholder {
    color: var(--text-muted);
}

.editor-textarea.hidden {
    display: none;
}

.code-output {
    background: var(--bg-input);
    min-height: 400px;
}

.result-content {
    flex: 1;
    padding: 16px;
    overflow: auto;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-muted);
    gap: 12px;
}

.result-placeholder i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.result-placeholder p {
    font-size: 0.9rem;
}

/* ---- CONVERTER ---- */
.converter-workspace {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 450px;
}

.converter-panel {
    display: flex;
    flex-direction: column;
}

.converter-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 12px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.1);
}

.converter-controls.vertical {
    flex-direction: column;
}

.convert-btn {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.convert-btn:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
}

.convert-btn.clear:hover {
    border-color: var(--error);
    color: var(--error);
}

/* ---- GENERATOR ---- */
.generator-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
}

.generator-form {
    padding: 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 700px;
}

.generator-output {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group input[type="range"] {
    padding: 0;
    height: 6px;
    -webkit-appearance: none;
    background: var(--border);
    border-radius: 10px;
    border: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ---- BASE64 ---- */
.base64-workspace {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 350px;
}

.base64-panel {
    display: flex;
    flex-direction: column;
}

/* ---- PASSWORD ---- */
.password-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
}

.password-config {
    padding: 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 500;
    transition: var(--transition);
}

.preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.1);
}

.password-output {
    padding: 20px;
    overflow-y: auto;
    max-height: 500px;
}

.password-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.password-item:hover {
    border-color: var(--accent);
}

.password-item .pwd-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--accent-light);
}

.password-item .pwd-copy {
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: var(--transition);
}

.password-item .pwd-copy:hover {
    background: var(--accent-dark);
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: var(--border);
    overflow: hidden;
}

.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- GITIGNORE ---- */
.gitignore-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
}

.gitignore-options {
    padding: 24px;
    border-right: 1px solid var(--border);
}

.gitignore-options h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tech-option:hover {
    border-color: var(--accent);
}

.tech-option input:checked + span {
    color: var(--accent-light);
}

.tech-option input {
    accent-color: var(--accent);
}

/* ---- COMPOSE ---- */
.compose-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 24px;
}

.service-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.service-header h4 {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
}

.remove-service {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: var(--transition);
}

.remove-service:hover {
    color: var(--error);
}

.service-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-body .form-group label {
    font-size: 0.78rem;
}

.service-body .form-group input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.compose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: center;
}

/* ---- SUBNET ---- */
.subnet-workspace {
    display: grid;
    grid-template-columns: 380px 1fr;
}

.subnet-input-area {
    padding: 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cidr-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cidr-slider input {
    flex: 1;
}

.cidr-slider span {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    min-width: 40px;
}

.subnet-results {
    padding: 24px;
    overflow-y: auto;
}

.subnet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.subnet-item {
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.subnet-item .subnet-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.subnet-item .subnet-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
}

/* ---- CRON ---- */
.cron-workspace {
    padding: 30px;
}

.cron-builder {
    max-width: 800px;
    margin: 0 auto;
}

.cron-fields {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.cron-field {
    text-align: center;
}

.cron-field label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.cron-input {
    width: 100%;
    padding: 12px;
    text-align: center;
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--accent-light);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    outline: none;
    transition: var(--transition);
}

.cron-input:focus {
    border-color: var(--accent);
}

.cron-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cron-expression {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.cron-expression label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.cron-display {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    text-align: center;
    letter-spacing: 4px;
}

.cron-presets h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.preset-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cron-description {
    padding: 16px 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius);
    color: var(--accent-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- JWT ---- */
.jwt-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.jwt-input-area {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.jwt-input-area .editor-textarea {
    min-height: 250px;
}

.jwt-input-area .btn {
    margin: 16px;
}

.jwt-results {
    padding: 20px;
    overflow-y: auto;
}

.jwt-section {
    margin-bottom: 20px;
}

.jwt-section h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jwt-section pre {
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-light);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.jwt-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.jwt-status.valid {
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: var(--success);
}

.jwt-status.expired {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error);
}

.jwt-status.warning {
    background: rgba(253, 203, 110, 0.1);
    border: 1px solid rgba(253, 203, 110, 0.3);
    color: var(--warning);
}

/* ---- REGEX ---- */
.regex-workspace {
    padding: 24px;
}

.regex-input-area {
    max-width: 900px;
    margin: 0 auto;
}

.regex-field {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.regex-delim {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 0 4px;
}

.regex-field input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
}

.regex-flags {
    max-width: 60px;
    text-align: center;
}

.regex-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.regex-results {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.regex-match {
    display: inline;
    background: rgba(108, 92, 231, 0.3);
    color: var(--accent-light);
    padding: 2px 4px;
    border-radius: 4px;
    border-bottom: 2px solid var(--accent);
}

.regex-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---- ABOUT ---- */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 16px;
}

.about-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.about-name {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- FOOTER ---- */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

/* ---- TOAST ---- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--error);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* YAML Result styles */
.yaml-valid {
    padding: 16px;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    border-radius: 10px;
    color: var(--success);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.yaml-error {
    padding: 16px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    color: var(--error);
    margin-bottom: 16px;
}

.yaml-error .error-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yaml-error .error-detail {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    opacity: 0.9;
}

.yaml-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.yaml-info-item {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.yaml-info-item .label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.yaml-info-item .value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-light);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .workspace-body,
    .converter-workspace,
    .generator-workspace,
    .base64-workspace,
    .password-workspace,
    .gitignore-workspace,
    .subnet-workspace,
    .jwt-workspace {
        grid-template-columns: 1fr;
    }

    .editor-panel {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .converter-controls {
        flex-direction: row;
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .generator-form {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .password-config {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .gitignore-options {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .subnet-input-area {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .jwt-input-area {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .cron-fields {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-stats {
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .cron-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .subnet-grid {
        grid-template-columns: 1fr;
    }

    .compose-services {
        grid-template-columns: 1fr;
    }

    .yaml-info {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions .github-btn span {
        display: none;
    }

    .section {
        padding: 60px 16px;
    }
}