/* =========================
   GLOBAL
========================= */
body {
    background: linear-gradient(145deg, #0a2a43, #0f3b5c);
    color: #e1f0ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* =========================
   HEADER
========================= */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

header .bg-black {
    background: linear-gradient(to right, #0b1f33, #14476c);
    padding: 1rem 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.55);
    border-bottom: 2px solid #1e6aa6;
}

/* Logo */
header a.flex {
    font-weight: 800;
    letter-spacing: 1px;
}

header a.flex i {
    color: #57aaff;
    font-size: 1.4rem;
}

/* Navigation */
.nav-link {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0.75rem;
    position: relative;
    transition: color 0.3s ease;
}

.text-blue-400 {
    color: #ffffff !important;
}


.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #57aaff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #a9ddff;
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================
   MOBILE MENU
========================= */
@media (max-width: 768px) {
    #mobile-menu {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: linear-gradient(145deg, #0b1f33, #14476c);
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid #1e6aa6;
        box-shadow: 0 12px 30px rgba(0,0,0,0.6);
        border-radius: 0 0 16px 16px;
    }

    #mobile-menu a {
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-weight: 600;
    }
}

/* =========================
   MAIN CONTAINER
========================= */
main {
    padding: 2rem;
    background: linear-gradient(135deg, #1c3d5a, #256c9e);
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 960px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2),
                0 8px 20px rgba(0,0,0,0.4);
}

/* =========================
   HERO
========================= */
section h1 {
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

section p {
    font-size: 1.05rem;
}

/* =========================
   SEARCH FORM (MODERN)
========================= */
.search-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    background: #102f4a;
    border-radius: 9999px;
    border: 1px solid #2e7bbf;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.search-bar {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1.25rem;
    color: #e1f0ff;
    font-size: 1rem;
}

.search-bar::placeholder {
    color: #8fc5ec;
}

.search-bar:focus {
    outline: none;
}

.search-button {
    background: linear-gradient(135deg, #1e6aa6, #57aaff);
    border: none;
    padding: 0 1.75rem;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.search-button:hover {
    filter: brightness(1.15);
}

/* =========================
   TABLE
========================= */
table {
    width: 100%;
    background-color: #12324c;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    border: 1px solid #ffffff;
}

th, td {
    background-color: #1a4669;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 0.75rem;
}

th {
    background-color: #215f8c;
    font-weight: bold;
    color: #c7e6ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td a {
    color: #7dc4ff;
    transition: color 0.3s ease;
}

td a:hover {
    color: #ffffff;
}

/* =========================
   IMAGE
========================= */
img {
    border: 2px solid #2e7bbf;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
}

/* =========================
   FOOTER
========================= */
footer {
    background: linear-gradient(to right, #0b1f33, #14476c);
    padding: 1rem 2rem;
    text-align: center;
    border-top: 2px solid #1e6aa6;
}

.footer-link {
    color: #7dc4ff;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    main {
        padding: 1.5rem;
        margin: 1rem;
    }

    .search-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-button {
        width: 100%;
        padding: 0.75rem;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
