body {
    margin: 0;
    font-family: Poppins, sans-serif;
    padding-top: 60px;
}

/* NAVBAR */
/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0 20px;
}

/* Logo and text */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    width: 60px;
    height: auto;
    filter: grayscale(100%);
}

.text-container p {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Right side: username + mail icon */
#navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    margin-right:40px;
}

#navbar-right .username {
    display: inline-block;
    color: white; /* ensures name is visible */
}

/* Material icon */
.nav-icon {
    cursor: pointer;
    font-size: 28px;
    color: white; /* ensures icon is visible */
    transition: color 0.2s;
}

.nav-icon:hover {
    color: #1E90FF;
}

/* MOBILE: hide username, show only mail icon */
@media (max-width: 650px) {
    #navbar-right .username {
        display: none;
    }
}
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background-color: #333;
    justify-content: space-between;
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    z-index: 1000;
}

ul img {
    width: 60px;
    height: auto;
    filter: grayscale(100%);
    margin-left: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.text-container {
    color: white;
    font-size: 20px;
    margin-left: 15px;
    font-weight: 600;
}

/* HEADER */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 50px;
}

.centered {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* TABLE */

.table-container {
    width: 100%;
    max-width: 75%;
    margin: 0 auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: #f7f7f7;
}

td {
    padding: 10px;
    vertical-align: middle;
}

th {
    padding: 10px;
    border: 1px solid #ddd;
    background: #333;
    color: white;
}

tr:nth-of-type(1n) {
    background: #f4f4f4;
}

tr:nth-of-type(2n) {
    background: #e7e7e7;
}

/* BUTTONS (UNCHANGED) */

.umpire-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    border-radius: 5px;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    color: white;
    border-radius: 5px;
}

.green {
    background-color: #00cc03;
    color: white;
    cursor: pointer;
}

.red {
    background-color: #f00000;
    color: white;
    cursor: pointer;
}

.blue {
    background-color: #0075f0;
    color: white;
    cursor: pointer;
}

.yellow {
    background-color: #f0c400;
    color: white;
}

.gray {
    background-color: #ABABAB;
        color: white;

}

.black {
    background-color: #000000;
    color: white;
    cursor: pointer;
}

.grayed {
    background-color: #d3d3d3;
    color: #888;
}

.assigned {
    background-color: #A8BAFF;
    color: #001c8d;
}

/* ICONS */

.icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Fix Material Symbols specifically */
.material-symbols-outlined.icon {
    font-size: 22px;
    line-height: 1;
}


/* Fix <img> icons */
img.icon {
    object-fit: contain;
}

.modal{
display:none;
position:fixed;
z-index:1000;
left:0;
top:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.4);
backdrop-filter:blur(5px);
}

.modal-content{
background:#fff;
margin:10% auto;
padding:20px;
width:400px;
border-radius:10px;
position:relative;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers content horizontally */
    gap: 15px;           /* space between select and button */
}

.assign-btn {
    margin-top: 0;
    width: auto;          /* button width fits content */
}

.close{
position:absolute;
right:15px;
top:10px;
font-size:25px;
cursor:pointer;
}

select{
width:100%;
padding:10px;
margin-top:10px;
}

.assign-btn{
margin-top:15px;
width:100%;
}
/* MOBILE */

@media (max-width: 650px) {


.icon {
        width: 17px;
        height: 17px;
        min-width: 17px; /* prevents stretching */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0; /* stops squishing weirdness */
    }

    /* Material icons */
    .material-symbols-outlined.icon {
        font-size: 17px;
        line-height: 1;
    }

    /* Image icons */
    img.icon {
        width: 17px;
        height: 17px;
        object-fit: contain;
    }
    .umpire-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px 10px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        text-decoration: none;
        border-radius: 5px;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 6px 10px;
        font-size: 14px;
        font-weight: 600;
        border: none;
        text-decoration: none;
        border-radius: 5px;
        width: fit-content;
        max-width: 100%;
        margin: 0 auto;
    }

    .table-container {
        max-width: 90%;
    }

    th {
        display: none;
    }

    td {
        display: grid;
        grid-template-columns: 15ch auto;
        padding: .5rem 1rem;
    }

    td:first-child {
        padding-top: 2rem;
    }

    td:last-child {
        padding-bottom: 2rem;
    }

    td::before {
        content: attr(data-cell) ": ";
        font-weight: 700;
        text-transform: capitalize;
    }

    td:nth-of-type(1)::before { content: "Date:"; }
    td:nth-of-type(2)::before { content: "Field:"; }
    td:nth-of-type(3)::before { content: "Division:"; }
    td:nth-of-type(4)::before { content: "Home:"; }
    td:nth-of-type(5)::before { content: "Away:"; }
    td:nth-of-type(6)::before { content: "Umpire:"; }
    td:nth-of-type(7)::before { content: "Action:"; }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* ACTION CARD */
#navbar-icons { display: flex; gap: 10px; margin-right: 20px; }
.nav-icon { cursor: pointer; font-size: 28px; color: white; transition: color 0.2s; }
.nav-icon:hover { color: #1E90FF; }

.action-div {
    width: 250px;
    margin-top: 40px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.action-div h2 {
    margin-top: 2px;
}