/* GENERAL */
body {
    margin: 0;
    font-family: Poppins, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    padding-top: 60px;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #002282;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 60px;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 7px;
}

.logo-container img {
    width: 60px;
    height: auto;
    margin-left: 10px;
}

.text-container {
    color: white;
    font-size: 20px;
    margin-left: 10px;
    font-weight: 600;
}

#navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    margin-right:35px;
}

#navbar-right .username {
    display: inline-block;
    color: white;
}

.nav-icon {
    cursor: pointer;
    font-size: 28px;
    color: white;
    transition: color 0.2s;
}

.nav-icon:hover {
    color: #1E90FF;
}

@media (max-width: 650px) {
    #navbar-right .username {
        display: none;
    }
}

/* HEADER */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 60px;
}

.centered {
    flex: 1;
    text-align: center;
}

/* TABLE */
.table-container {
    width: 100%;
    max-width: 75%;
    margin: 0 auto;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: #f7f7f7;
}

th, td {
    padding: 10px;
    vertical-align: middle;
}

th {
    border: 1px solid #ddd;
    background: #333;
    color: white;
}

tr:nth-of-type(odd) {
    background: #EBEBEB;
}

tr:nth-of-type(even) {
    background: #e7e7e7;
}

/* BUTTONS */
.umpire-button, .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;  /* centers text + icon */
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.label { color: white; }

.red { background-color: #f00000; color: white; }
.yellow { background-color: #f0c400; color: white; }
.green { background-color: #00cc03; color: white; }
.blue { background-color: #0075f0; color: white; }
.purple { background-color: #E800F0; color: white; }
.gray { background-color: #ABABAB; color: white; }
.black { background-color: #000000; color: white; }
.grayed { background-color: #d3d3d3; color: #888; }
.assigned { background-color: #A8BAFF; color: #001c8d; }
.highlight-weir { background-color: #009AA8; color: #27F5EE; }
.highlight-buggy { background-color: #A86D00; color: #F5A627; }
.highlight-both { background-color: #A0A800; color: #F2F527; }

/* ICONS FIXED FOR TEXT ALIGNMENT */
.icon, img.icon, .material-symbols-outlined.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 16px;   /* smaller width */
    height: 16px;  /* smaller height */
    line-height: 1;
    object-fit: contain;
    margin-left: 4px;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 60px;
    width: 100%;
    height: calc(100% - 60px);
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content button {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

/* MOBILE STYLES */
@media (max-width: 650px) {

    .modal {
        align-items: flex-start;
    }

    .modal-content {
        width: 100%;
        height: calc(100vh - 60px);
        max-width: 100%;
        max-height: none;
        border-radius: 0;
        padding: 20px;
        overflow-y: auto;
    }

    .close {
        font-size: 28px;
        top: 15px;
        right: 20px;
    }

   

    .umpire-button, .label {
        gap: 5px;
        padding: 6px 10px;
        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 { font-weight: 700; text-transform: capitalize; }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}