/* Basic reset for better cross-browser consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 20px;
    color: #000000;
    font-style: normal;
    text-align: center;
}

header {
    background-color: #a85fbe;
    padding: 10px 0;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    border-radius: 20px;
}

nav {
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;  /* Flexbox layout for desktop */
    justify-content: center; /* Centers the items horizontally */
    gap: 10px;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: #3a7dd4;
    border-radius: 25px;
}

/* Ensures "Home" stays at the top and centered */
nav ul li:first-child {
    text-align: center;  /* Center "Home" */
}

/* Responsive Navigation for Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
    nav ul {
        display: grid;  /* Grid layout for mobile */
        grid-template-columns: 1fr 1fr;  /* Two columns */
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 0;
        text-align: center; /* Center text inside each item */
    }

    /* Ensures the "Home" link stays at the top and spans both columns */
    nav ul li:first-child {
        grid-column: span 2; /* "Home" should span across both columns */
        text-align: center; /* Center "Home" */
    }

    /* Adjust link text alignment for better look */
    nav ul li a {
        text-align: center;
    }
}

main {
    max-width: 800px;
    margin: 0 auto;
}

h1, h2 {
    margin-bottom: 20px;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

ul li {
    margin-bottom: 15px;
}

ul li a {
    font-size: 18px;
    text-decoration: none;
    color: #007BFF;
}

ul li a:hover {
    text-decoration: underline;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.tile {
    background-color: #fff;
    border: 2px solid #a85fbe;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
    margin-top: 20px;
    margin-bottom: 20px;
}

.tile-header {
    font-weight: bold;
    color: #007BFF;
}

.agency-name {
    font-weight: bold;
    font-style: normal;
    color: #007BFF;
}

.tile:hover {
    transform: scale(1.05);
}

.pay-submission-tile {
    margin-top: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
}

.badge {
    display: inline-block;
    background-color: #3a7dd4;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    margin: 10px 0;
    font-size: 1rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

input[type="submit"],
button {
    background-color: #a85fbe;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 10px auto;
}

input[type="submit"]:hover,
button:hover {
    background-color: #8b4a9b;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: white;
}

/* Style for the search container */
.search-container {
    margin: 20px auto;
    text-align: center;
}

#agencySearch {
    width: 80%;  /* Adjust width as needed */
    max-width: 500px;  /* Set a max width to prevent it from stretching too much */
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#agencySearch:focus {
    border-color: #3a7dd4;  /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(58, 125, 212, 0.5);
}
/* Testing Phase Message */
#testingMessage {
    background-color: #ffea00;  /* Bright Yellow */
    color: #000000;  /* Black text */
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;  /* Ensures it stays on top */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ======================
   RESOURCE LINK STYLES
   ====================== */
   .resource-category {
    margin-bottom: 2rem;
    text-align: center;
}

.resource-category h2 {
    color: #2c3e50;
    border-bottom: 2px solid #a85fbe;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.resource-card {
    background-color: #fff;
    border: 2px solid #a85fbe;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.resource-card h3 {
    color: #007BFF;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.resource-card p {
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.5;
}

.resource-link {
    display: inline-block;
    background-color: #3a7dd4;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.resource-link:hover {
    background-color: #2c5fb3;
    text-decoration: none;
}

/* Default Desktop Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* Hamburger Button - Hidden by Default */
.menu-toggle {
    display: none;
    background: #3a7dd4;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px auto;
    font-weight: bold;
    cursor: pointer;
    width: 100px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: #3a7dd4;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 4px;
        margin: 10px auto;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
    }

    #nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #a85fbe;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    #nav-list.active {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #nav-list li {
        text-align: center;
    }

    #nav-list li a {
        display: block;
        padding: 12px;
        margin: 0 15px;
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
    }
}
/* Makes datalist dropdown more visible */
input[list] {
    padding: 8px;
    font-size: 16px;
}

datalist {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
}

datalist option {
    padding: 8px;
    cursor: pointer;
}

datalist option:hover {
    background-color: #f0f0f0;
}

/* styles.css */
input[list] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

datalist {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    width: calc(100% - 20px);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

datalist option {
    padding: 10px;
    cursor: pointer;
}

datalist option:hover {
    background-color: #f5f5f5;
}
.tile-green-border {
    position: relative;
    border: 3px solid #00c853; /* A brighter green */
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.6), 0 0 20px rgba(0, 255, 100, 0.4);
    border-radius: 8px;
    animation: pulse-glow 2s infinite ease-in-out;
    overflow: hidden;
}

/* Pulsing glow animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 100, 1);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 100, 0.5);
    }
}

/* Sparkle effect using a pseudo-element */
.tile-green-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 80%);
    background-size: 10% 10%;
    animation: sparkle 3s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

@keyframes sparkle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50%, 50%) rotate(360deg);
    }
}


/* Average Pay Display Grid */
#averageContainer .tile {
    background-color: #f0f9ff;
    border: 2px solid #bbdefb;
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}


/*Coming Soon PLaceholder */

.coming-soon-tile {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 20px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    background-color: #4CAF50;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.feature-preview {
    text-align: left;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}