/* ====== Global Reset ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    color: #e6e9ef;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    background-image: url("./assets/background.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ====== Container ====== */
.container {
    background: rgba(20, 20, 30, 0.55);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    overflow-x: auto;
    color: #f0f0f0;
}


h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #04e143;

}

/* ====== IP Section ====== */
.ip-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.ip-section span {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    word-break: break-word;
}


#newIpBtn {
    padding: 10px 18px;
    border: 1px solid rgba(0, 123, 255, 0.5);
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.3s ease, transform 0.2s ease;
}

#newIpBtn:hover {
    background: rgba(0, 123, 255, 0.25);
    transform: scale(1.05);
}


/* ====== Table ====== */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ====== Table Header ====== */
th {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f0f0;
    letter-spacing: 0.2px;
    text-transform: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* ====== Table Cells ====== */
td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: #f0f0f0;
}

/* ====== Row Hover Effect ====== */
tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

/* ====== Input Fields ====== */
input[type="text"] {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 150px;
    text-align: center;
    font-size: 0.9rem;
    transition: 0.25s ease;
}

input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 255, 150, 0.5);
    box-shadow: 0 0 6px rgba(0, 255, 150, 0.4);
}

/* ====== Buttons ====== */
button.check-btn,
button.show-btn {
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 3px;
    transition: 0.25s ease;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

button.check-btn {
    background: rgba(0, 255, 150, 0.25);
    color: #00ffb0;
}

button.check-btn:hover {
    background: rgba(0, 255, 150, 0.5);
    transform: scale(1.03);
}

button.show-btn {
    background: rgba(255, 180, 0, 0.25);
    color: #ffc94a;
}

button.show-btn:hover {
    background: rgba(255, 180, 0, 0.5);
    transform: scale(1.03);
}


/* ====== Footer ====== */
.footer {
    text-align: center;
    margin-top: 25px;
}

.footer a {
    color: #00c6ff;
    text-decoration: none;
    font-weight: 500;
}

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

/* ====== Responsive ====== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 25px;
    }

    .ip-section span {
        font-size: 1rem;
        padding: 8px 14px;
    }

    input[type="text"] {
        width: 120px;
    }

    button.check-btn,
    button.show-btn {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }

    .container {
        padding: 20px;
    }

    .ip-section {
        flex-direction: column;
        gap: 10px;
    }

    table {
        font-size: 0.8rem;
        min-width: 550px;
    }
}