:root {
/* Surfaces */
    --color-bg:  #ebe5e2;
    --color-surface: #fcfaf9;
    --color-surface-alt: #3f2c21;

    /* Typography */
    --color-text: #1f243f;
    --color-text-content: #363636;
    --color-text-muted: #8b8b8b ;
    --color-text-inverse: #fdfbfb;
    --color-text-brand: #ffffff;
    /* Actions */
    --color-primary: #2563eb;
    --color-primary-hover:#60a5fa;
    --color-primary-active:#60a5fa;

    --color-button-text: #ffffff;

    /* Structure */
    --color-border: #e5e7eb;

    --bg: #c5c0bd;
    --bgnav: #3f2c21;
    --text: #111827;
    --textbrand: #1f243f;
    --card: #e2e0e0;
    --border: #e5e7eb;
    --primary: #2563eb;
    --button: #2563eb;
    --buttontext: #ffffff;
    --highlight: #2563eb;
}

[data-theme="dark"] {
    /* Surfaces */
    --color-bg:  #0b1220;
    --color-surface: #19263f;
    --color-surface-alt: #bebdbd;

    /* Typography */
    --color-text: #ffffff;
    --color-text-content: #ffffff;
    --color-text-muted: #8b8b8b ;
    --color-text-inverse: #8a8b8b;
    --color-text-brand: #ffffff;
    /* Actions */
    --color-primary: #2563eb;
    --color-primary-hover:#60a5fa;
    --color-primary-active:#60a5fa;

    --color-button-text: #ffffff;

    /* Structure */
    --color-border: #1f2937;


    --bg: #0b1220;
    --bgnav: #0b1220;
    --text: #e5e7eb;
    --textbrand: #e5e7eb;    
    --card: #182133;
    --border: #1f2937;
    --primary: #60a5fa;
    --button: #29446d;
    --buttontext: #ffffff;
    --highlight: #60a5fa;
}

/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

 /* NAVIGATION */

        .navbar {
            position: sticky;
            top: 0;
            z-index: 1000;

            background: var(--color-surface);
            backdrop-filter: blur(8px);

            border-bottom: 1px solid var(--color-border);
        }

        .nav-container {
            max-width: 1100px;
            margin: 0 auto;

            display: flex;
            justify-content: space-between;
            align-items: center;

            padding: 14px 20px;
        }

        .brand {
            font-size: 18px;
            font-weight: 700;
            color: var(--color-text);
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-links a {
            color: #9ca3af;
            text-decoration: none;
            font-size: 14px;
        }

        .nav-links a:hover {
            color: #60a5fa;
        }

        .nav-links a.active {
            color: #60a5fa;
        }

/* =========================
   LAYOUT
========================= */

        .hero {
            max-width: 900px;
            margin: auto;
            padding: 80px 20px 60px;
            text-align: center;
        }

        .hero h1 {
            font-size: 48px;
            margin-bottom: 16px;
            color: var(--color-surface-alt);
        }

        .hero p {
            font-size: 20px;
            color: var(--color-text-muted);
            max-width: 700px;
            margin: auto;
        }

.container {
    max-width: 578px;
    margin: 0 auto;
    padding: 20px;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================
   CARD
========================= */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom:24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-size: 22px;
    margin-bottom: 16px;
}

h2 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 10px;
}

p {
    color: var(--color-text);
}

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

/* =========================
   INPUTS
========================= */

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 14px;
}

input::placeholder {
    color: var(--color-text);
}

/* =========================
   BUTTONS
========================= */

button {
    background: var(--color-primary);
    color: var(--color-button-text);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================
   ACTION ROWS
========================= */

.actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* =========================
   OUTPUT BOX (IP / PASSWORD)
========================= */

.output-box {
    font-size: 18px;
    padding: 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    word-break: break-word;
    margin-bottom: 16px;
    color: var(--color-text);
}

/* =========================
   TOOL META
========================= */

.tool-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-sub {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* =========================
   FEEDBACK TEXT
========================= */

.success {
    color: var(--color-text);
    font-size: 12px;
    margin-top: 10px;
    display: none;
}

/* =========================
   FOOTER
========================= */

.footer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-text);
    text-align: center;
}

.footer a {
    color: var(--color-text);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

 .copied {
            margin-top: 10px;
            font-size: 12px;
            color: var(--color-text);
            display: none;
        }

           label {
            display: flex;
            justify-content: space-between;
            font-size: 14px;
            color: var(--color-text);
        }

                .row {
            margin: 12px 0;
            text-align: left;
        }

/* QR  */
 .preview {
            display: flex;
            justify-content: center;
            align-items: center;

            background: var(--color-bg);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            min-height: 320px;
        }

        .ip {
            font-size: 40px;
            font-weight: 700;
            color: var(--color-primary);
            word-break: break-word;
            margin-bottom: 20px;
        }


        .tools {
            max-width: 1100px;
            margin: auto;
            padding: 0 20px 60px;
        }

        .tools h2 {
            text-align: center;
            margin-bottom: 40px;
            color:var(--color-surface-alt);
        }

        .tool-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .tool-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border);
            border-radius: 16px;
            padding: 24px;
            transition: 0.2s;
        }

        .tool-card:hover {
            transform: translateY(-3px);
            border-color: var(--color-text);
        }

        .tool-card h3 {
            margin-top: 0;
            color: var(--color-text);
        }

        .tool-card p {
            color: var(--color-text);
            min-height: 60px;
        }

        .tool-card a {
            display: inline-block;
            margin-top: 10px;
            color: var(--color-button-text);
            background: var(--color-primary);
            padding: 10px 16px;
            border-radius: 10px;
            text-decoration: none;
        }

        .tool-card a:hover {
            background: #1d4ed8;
        }

        .features {
            max-width: 900px;
            margin: auto;
            padding: 60px 20px;
            text-align: center;
        }

        .features ul {
            list-style: none;
            padding: 0;
        }

        .features li {
            margin-bottom: 12px;
            color: var(--color-text);
        }

        .faq {
            max-width: 900px;
            margin: auto;
            padding: 40px 20px 80px;
        }

        .faq h2 {
            text-align: center;
            margin-bottom: 40px;
        }

        .faq-item {
            margin-bottom: 30px;
        }

        .faq-item h3 {
            color: var(--color-text);
            margin-bottom: 10px;
        }

        .faq-item p {
            color: var(--color-text);
        }

        footer {
            border-top: 1px solid var(--color-border);
            padding: 30px 20px;
            text-align: center;
            color: var(--color-text);
        }

        footer a {
            color: var(--color-text);
            text-decoration: none;
            margin: 0 10px;
        }

        footer a:hover {
            color: var(--highlight);
        }        