﻿
.toast-message {
    visibility: hidden;
    min-width: 280px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 14px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 15px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast-message.show {
    visibility: visible;
    opacity: 1;
}

:root {
    --primary: #123b5d;
    --primary-dark: #0b2942;
    --accent: #19a7a0;
    --accent-light: #e8f7f6;
    --background: #f4f7fa;
    --card: #ffffff;
    --text: #172b3a;
    --muted: #71808d;
    --border: #dfe7ed;
    --success: #198754;
    --warning: #d99a00;
    --danger: #dc3545;
    --shadow: 0 10px 30px rgba(18, 59, 93, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
           HEADER
        ========================= */

.header {
    background: linear-gradient( 135deg, var(--primary-dark), var(--primary) );
    color: white;
    padding: 22px 0;
}

.header-container {
    width: min(1200px, 92%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 244px;
    height: 75px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.brand h1 {
    font-size: 20px;
    font-weight: 600;
}

.brand span {
    display: block;
    font-size: 12px;
    opacity: .7;
    letter-spacing: .5px;
}

.header-nav {
    display: flex;
    gap: 25px;
}

    .header-nav a {
        color: white;
        text-decoration: none;
        font-size: 14px;
        opacity: .85;
    }

        .header-nav a:hover {
            opacity: 1;
        }

/* =========================
           HERO / SEARCH
        ========================= */

.hero {
    background: white;
    padding: 65px 20px 80px;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    width: min(850px, 94%);
    margin: auto;
    text-align: center;
}

.hero h2 {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 7px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(18, 59, 93, .12);
}

.search-icon {
    padding-left: 16px;
    color: var(--muted);
    font-size: 19px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px;
    font-size: 16px;
    color: var(--text);
}

    .search-box input::placeholder {
        color: #a3adb5;
    }

.search-button {
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    width: 200px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

    .search-button:hover {
        background: #138f89;
        transform: translateY(-1px);
    }

.examples {
    margin-top: 15px;
    font-size: 12px;
    color: var(--muted);
}

/* =========================
           MAIN
        ========================= */

.container {
    width: min(1200px, 92%);
    margin: 45px auto;
}

/* =========================
           RESULT HEADER
        ========================= */

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.result-title h2 {
    color: var(--primary);
    font-size: 25px;
}

.result-title p {
    color: var(--muted);
    font-size: 13px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: white;
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--primary);
}

    .btn-secondary:hover {
        background: var(--accent-light);
    }

/* =========================
           CARDS
        ========================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    overflow: hidden;
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .card-header h3 {
        font-size: 16px;
        color: var(--primary);
    }

.card-body {
    padding: 25px;
}

/* =========================
           DOMAIN INFO
        ========================= */

.domain-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .7px;
    margin-bottom: 5px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

/* =========================
           STATUS
        ========================= */

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .status::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
    }

.status-active {
    color: var(--success);
    background: #e8f6ef;
}

.status-pending {
    color: var(--warning);
    background: #fff6dc;
}

.status-danger {
    color: var(--danger);
    background: #fdebed;
}

.json-container pre {
    background: #101820;
    padding: 25px 40px;
    border-radius: 0 0 6px 6px;
    overflow-x: auto;
    text-align: left;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
}

/* =========================
           TWO COLUMN
        ========================= */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

/* =========================
           EVENTS
        ========================= */

.event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

    .event:last-child {
        border-bottom: none;
    }

.event-name {
    font-size: 13px;
    color: var(--muted);
}

.event-date {
    font-weight: 600;
    font-size: 13px;
}

/* =========================
           NAMESERVERS
        ========================= */

.nameserver {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    margin-bottom: 9px;
    background: #fafcfd;
}

.ns-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
}

.ns-name {
    font-family: Consolas, monospace;
    font-size: 13px;
}

/* =========================
           RAW JSON
        ========================= */

.json-container {
    background: #101923;
    color: #d8e4ed;
    padding: 22px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

.json-key {
    color: #70c9c3;
}

.json-string {
    color: #d9c58c;
}

.json-value {
    color: #8db5d1;
}

/* =========================
           FOOTER
        ========================= */

.footer {
    margin-top: 70px;
    background: var(--primary-dark);
    color: white;
    padding: 30px 0;
}

.footer-container {
    width: min(1200px, 92%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p {
    font-size: 12px;
    opacity: .65;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer a {
    color: white;
    text-decoration: none;
    font-size: 12px;
    opacity: .7;
}

/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 800px) {

    .header-nav {
        display: none;
    }

    .hero h2 {
        font-size: 29px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .search-icon {
        display: none;
    }

    .search-box input {
        width: 100%;
    }

    .search-button {
        width: 100%;
    }

    .domain-info {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    /* =========================
   MOBILE MENU TOGGLE
========================= */

    .menu-toggle {
        display: none;
        width: 45px;
        height: 45px;
        padding: 0;
        margin-left: 10px;
        background: var(--accent); /* Toggle button color */
        border: none;
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        position: relative;
        z-index: 1002;
        transition: background-color 0.2s ease;
    }

        .menu-toggle:hover {
            background: #138f89;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            margin: 3px 0;
            background: #ffffff;
            border-radius: 3px;
            transition: 0.3s ease;
        }


    /* =========================
   MOBILE
========================= */

    @media (max-width: 768px) {

        .header-container {
            position: relative;
            min-height: 90px;
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .menu-toggle {
            display: flex;
        }

        /* Mobile navigation */
        .header-nav {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            width: 100%;
            flex-direction: column;
            background: #ffffff;
            border-top: 1px solid var(--border);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
            z-index: 1001;
        }

            .header-nav.active {
                display: flex;
            }

            .header-nav a {
                display: block;
                width: 100%;
                padding: 16px 25px;
                color: var(--primary);
                background: #ffffff;
                text-decoration: none;
                border-bottom: 1px solid #eeeeee;
                font-size: 16px;
            }

                .header-nav a:hover {
                    background: var(--accent-light);
                }
    }


    /* =========================
   SMALL MOBILE
========================= */

    @media (max-width: 480px) {

        .header-container {
            padding: 12px 15px;
            min-height: 80px;
        }

        .brand-logo {
            width: 100px;
            height: 60px;
        }

        .brand h1 {
            font-size: 16px;
        }

        .brand span {
            font-size: 11px;
        }

        .menu-toggle {
            width: 42px;
            height: 42px;
            margin-left: 8px;
            background: var(--accent);
        }

            .menu-toggle span {
                width: 24px;
                height: 3px;
                background: #ffffff;
            }
    }
    .search-button {
        min-width: 160px;
    }

        .search-button.loading {
            cursor: wait;
            opacity: 0.8;
        }

            .search-button.loading::before {
                content: "";
                display: inline-block;
                width: 14px;
                height: 14px;
                margin-right: 8px;
                vertical-align: -2px;
                border: 3px solid rgba(255,255,255,0.4);
                border-top-color: white;
                border-radius: 50%;
                animation: searchSpin 0.7s linear infinite;
            }

    @keyframes searchSpin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }


  
    
    }
       


