/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    /* padding-top: 20px; Space for fixed navbar; */
    background-color: #0f172a; /* Navy blue background */
    color: #e0e0e0; /* Light text for contrast */
}

/* Navbar Styles */
.navbar {
    background-color: #1e293b; /* Dark navy background */
    color: white;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar .nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav__container img{
    height: 40px;
    width: auto;
    max-height: 50px;
}

.navbar .nav__menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar .nav__menu li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav__menu li a:hover {
    color: #38bdf8; /* Teal highlight color */
}

/* Responsive Navbar for Mobile */
#open-menu-btn,
#close-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .navbar .nav__menu {
        display: none; /* Hide menu by default on mobile */
        flex-direction: column;
        background-color: #1e293b;
        position: absolute;
        top: 60px;
        right: 0;
        width: 50%;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .navbar .nav__menu.active {
        display: flex; /* Show menu when active */
    }

    #open-menu-btn,
    #close-menu-btn {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
    }

    #close-menu-btn {
        display: none; /* Hide close button by default */
    }

    .nav__menu li {
        text-align: center;
        margin: 10px 0;
    }
}


/* Intro Article Styles */
.intro-article {
    /* border: 2px solid #334155; */
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    text-align: justify;
    animation: fadeIn 1s ease-in-out; /* Smooth fade-in effect */
}

/* Title Styling */
.intro-article h2 {
    color: #38bdf8; /* Teal highlight color */
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

/* Paragraph Styling */
.intro-article p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 20px; /* Indent the first line of each paragraph */
}

/* List Styling */
.intro-article ul {
    list-style: disc;
    /* margin-left: 50px; */
    margin-bottom: 20px;
}

.intro-article ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.intro-article ul li::before {
    content: "✔"; /* Add a checkmark icon before each list item */
    position: absolute;
    left: 0;
    color: #38bdf8; /* Teal color for the checkmark */
    font-size: 1.2rem;
}

/* Add a subtle fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .intro-article h2 {
        font-size: 1.5rem;
    }

    .intro-article p, .intro-article ul li {
        font-size: 0.9rem;
    }
}

/* Main Container */
.main-container {
    max-width: 90%;
    margin: 80px auto 20px;
    padding: 20px;
    background-color: #1e293b; /* Dark navy container */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

h1 {
    margin-top: 20px;
    text-align: center;
    color: #38bdf8; /* Teal highlight color */
    font-size: 2rem;
}

/* Improved Select Styles */
select {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 12px 16px; /* Increased padding for better usability */
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #334155; /* Slightly thicker border */
    border-radius: 6px; /* Rounded corners */
    background-color: #1e293b; /* Dark navy dropdown background */
    color: #e0e0e0; /* Light text */
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer; /* Pointer cursor for better interactivity */
    appearance: none; /* Remove default browser styles */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

select:hover {
    background-color: #243447; /* Slightly lighter navy on hover */
    border-color: #38bdf8; /* Teal border on hover */
    color: #ffffff; /* Brighter text on hover */
}

select:focus {
    border-color: #38bdf8; /* Teal border on focus */
    outline: none; /* Remove default focus outline */
    background-color: #334155; /* Slightly lighter background on focus */
    color: #ffffff; /* Brighter text on focus */
}

/* Add a custom dropdown arrow */
select::after {
    content: '▼'; /* Unicode for dropdown arrow */
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Prevent interaction with the arrow */
    color: #e0e0e0;
}

/* Wrapper for Select to Position the Arrow */
.select-wrapper {
    position: relative;
    /* display: inline-block; */
    width: 100%; /* Ensure it spans the full width */
    max-width: 400px; /* Optional: Limit the width */
    margin: 0 auto; /* Center the dropdown */
}

/* Table Container */
.table-container {
    margin-top: 20px;
    width: 100%; /* Make the container span the full width */
    padding: 0; /* Remove any padding */
    white-space: nowrap;
}

/* Table Styles */
table {
    width: 100%; /* Make the table span the full width of the container */
    border-collapse: collapse;
    margin: 0; /* Remove any margin */
    background-color: #1e293b; /* Dark navy table background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

table th, table td {
    border: 1px solid #334155; /* Darker navy border */
    padding: 12px;
    text-align: left;
    color: #e0e0e0;
}

table th {
    background-color: #0f172a; /* Darker navy header */
    color: #38bdf8; /* Teal highlight color */
    font-weight: bold;
    font-size: 1.2rem; /* Increased font size for headers */
    text-transform: uppercase; /* Make headers uppercase for better readability */
}

table tr:nth-child(even) {
    background-color: #243447; /* Slightly lighter navy for alternate rows */
}

table tr:nth-child(odd) {
    background-color: #1e293b; /* Darker navy for odd rows */
}

/* Row Hover Effect */
table tbody tr:hover {
    background-color: #334155; /* Highlight row on hover */
    transform: scale(1.02); /* Slight zoom effect on row */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Button Styles */
.table-container a {
    display: inline-block;
    padding: 8px 8px;
    background-color: #ff2b2b; /* Red button background */
    color: #ffffff; /* White text */
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.table-container a:hover {
    background-color: #d11414; /* Darker red on hover */
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    select {
        font-size: 14px;
        padding: 8px;
    }

    .table-container{
        overflow-x: auto;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }
}