body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000; /* pure black */
    color: #ffffff;
    margin: 0;
    padding: 20px;
}

/* ===== Table Container ===== */
.container {
    max-width: 1000px;
    margin: auto;
    background: rgba(20, 20, 30, 0.95); /* slightly transparent black */
    padding: 20px;
    border-radius: 16px;
    /* Animated neon border */
    border: 3px solid;
    border-image: linear-gradient(
        120deg,
        #38bdf8,
        #f472b6,
        #a3e635,
        #facc15,
        #38bdf8
    ) 1;
    animation: neon-border 4s linear infinite;
    box-shadow: 0 0 40px 8px #38bdf8, 0 4px 32px 0 #f472b6;
    background: linear-gradient(135deg, #18181b 80%, #38bdf8 100%);
}

@keyframes neon-border {
    0% {
        border-image-source: linear-gradient(
            120deg,
            #38bdf8,
            #f472b6,
            #a3e635,
            #facc15,
            #38bdf8
        );
    }
    25% {
        border-image-source: linear-gradient(
            120deg,
            #f472b6,
            #a3e635,
            #facc15,
            #38bdf8,
            #f472b6
        );
    }
    50% {
        border-image-source: linear-gradient(
            120deg,
            #a3e635,
            #facc15,
            #38bdf8,
            #f472b6,
            #a3e635
        );
    }
    75% {
        border-image-source: linear-gradient(
            120deg,
            #facc15,
            #38bdf8,
            #f472b6,
            #a3e635,
            #facc15
        );
    }
    100% {
        border-image-source: linear-gradient(
            120deg,
            #38bdf8,
            #f472b6,
            #a3e635,
            #facc15,
            #38bdf8
        );
    }
}

/* ===== Table Styling ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    font-size: 15px;
    background: #000; /* changed from blue to pure black */
    box-shadow: 0 0 24px 2px #38bdf833;
    border-radius: 12px;
    overflow: hidden;
    /* Neon border for the table */
    border: 2px solid;
    border-image: linear-gradient(
        120deg,
        #38bdf8,
        #f472b6,
        #a3e635,
        #facc15,
        #38bdf8
    ) 1;
    animation: neon-border 4s linear infinite;
    position: relative;
}

/* Table Header */
thead {
    background: #18181b;
    color: #38bdf8;
    text-transform: uppercase;
}

thead th {
    padding: 14px;
    text-align: left;
    border-bottom: 3px solid;
    border-image: linear-gradient(
        120deg,
        #38bdf8,
        #f472b6,
        #a3e635,
        #facc15,
        #38bdf8
    ) 1;
    animation: neon-border 4s linear infinite;
    letter-spacing: 1.5px;
    text-shadow: 0 0 12px #38bdf8, 0 0 2px #fff;
    font-size: 1.1em;
}

/* Table Body */
tbody tr {
    position: relative;
    z-index: 1;
}

tbody tr:nth-child(odd) {
    background: rgba(0, 0, 0, 0.85);
}
tbody tr:nth-child(even) {
    background: rgba(10, 10, 10, 0.85);
}

/* Neon glowing and color changing row borders */
tbody tr {
    border-bottom: 2px solid;
    border-image: linear-gradient(
        90deg,
        #38bdf8,
        #f472b6,
        #a3e635,
        #facc15,
        #38bdf8
    ) 1;
    animation: neon-border 4s linear infinite;
    box-shadow: 0 0 8px 2px #38bdf833;
}

/* Neon glowing and color changing column borders */
tbody td {
    padding: 12px;
    border-right: 2px solid;
    border-image: linear-gradient(
        180deg,
        #38bdf8,
        #f472b6,
        #a3e635,
        #facc15,
        #38bdf8
    ) 1;
    animation: neon-border 4s linear infinite;
    font-size: 1em;
    position: relative;
    z-index: 2;
}

/* Remove right border for last column */
tbody td:last-child {
    border-right: none;
}

/* Remove bottom border for last row */
tbody tr:last-child {
    border-bottom: none;
}

/* Hover effect */
tbody tr:hover {
    background: #38bdf8;
    color: #000;
    box-shadow: 0 0 24px 4px #f472b6, 0 0 12px 2px #a3e635;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Futuristic Button Style */
.button, button, input[type="submit"] {
    background: linear-gradient(90deg, #38bdf8 0%, #f472b6 50%, #a3e635 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 1.05rem;
    font-weight: bold;
    box-shadow: 0 2px 18px #38bdf8, 0 0 12px #f472b6;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    margin: 12px 0;
    letter-spacing: 1px;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background: linear-gradient(90deg, #f472b6 0%, #a3e635 50%, #38bdf8 100%);
    color: #0f172a;
    box-shadow: 0 0 32px 8px #f472b6, 0 0 24px 4px #a3e635;
}

/* Futuristic Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: #18181b;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #38bdf8 0%, #f472b6 50%, #a3e635 100%);
    border-radius: 8px;
    box-shadow: 0 0 8px #38bdf8;
}

/* Responsive: Neon Card Effect */
@media screen and (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead tr {
        display: none;
    }

    .container {
        box-shadow: 0 0 40px 10px #f472b6;
        border: 3px solid #a3e635;
        animation: neon-border 4s linear infinite;
    }

    tbody tr {
        margin-bottom: 18px;
        border: 2px solid #38bdf8;
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 0 18px 4px #f472b6;
        background: #000;
    }

    tbody td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border: none;
        border-bottom: 2px solid;
        border-image: linear-gradient(
            90deg,
            #38bdf8,
            #f472b6,
            #a3e635,
            #facc15,
            #38bdf8
        ) 1;
        animation: neon-border 4s linear infinite;
    }

    tbody td:last-child {
        border-bottom: none;
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #38bdf8;
        text-shadow: 0 0 8px #f472b6;
    }
}

h1 {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif;
    font-size: 5rem;
    text-align: center;
    color: #38bdf8;
    text-shadow:
        0 0 16px #38bdf8,
        0 0 32px #fa43a1,
        0 0 48px #a3e635,
        0 0 64px #facc15;
    animation: h1-glow 4s linear infinite;
    margin-bottom: 24px;
}

@keyframes h1-glow {
    0% {
        color: #38bdf8;
        text-shadow:
            0 0 16px #38bdf8,
            0 0 32px #f472b6,
            0 0 48px #a3e635,
            0 0 64px #facc15;
    }
    25% {
        color: #f53f9d;
        text-shadow:
            0 0 16px #e73f96,
            0 0 32px #a3e635,
            0 0 48px #facc15,
            0 0 64px #38bdf8;
    }
    50% {
        color: #a3e635;
        text-shadow:
            0 0 16px #a3e635,
            0 0 32px #facc15,
            0 0 48px #38bdf8,
            0 0 64px #f472b6;
    }
    75% {
        color: #facc15;
        text-shadow:
            0 0 16px #facc15,
            0 0 32px #38bdf8,
            0 0 48px #f472b6,
            0 0 64px #a3e635;
    }
    100% {
        color: #38bdf8;
        text-shadow:
            0 0 16px #38bdf8,
            0 0 32px #f472b6,
            0 0 48px #a3e635,
            0 0 64px #facc15;
    }
}
