/* Universal Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3 {
    color: #444;
    margin: 0;
}

a {
    text-decoration: none;
    color: #333;
}

/* Header and Navigation */
.site-header {
    background-color: #fff;
    padding: 1rem;
    padding-bottom: 0;
    /*display: flex;
    justify-content: left;
    align-items: center;
    gap: 1rem;*/
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 1rem;
}
.site-logo {
    max-width: 80px;
    padding: 0.25rem;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}
.site-header-icon {
    max-width: 2rem;
}
.main-nav {
    margin-left: auto;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    margin-left: .5rem;
    margin-right: .5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #e5173f; 
}

.main-nav-options {
    margin-top: 1.5rem;
    text-align: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-list a {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-transform: lowercase;
    font-variant: small-caps;
    color: #333;
    padding: 0.25rem 0.75rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s, border 0.2s,;
}

.nav-list a:hover, .nav-list a:focus {
    background: #2e3e6f;
    color: #fff;
    text-decoration: none;
}

.nav-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    filter: drop-shadow(0 2px 2px rgba(46,62,111,0.10));
}

/* Main Content and Product Grid */
section {
    padding: 2rem;
}
.product-grid h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
}
.dashboard-table {
    border-collapse: collapse;
    margin: 0 auto;
}
.dashboard-table th, .dashboard-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}
.dashboard-table th {
    background-color: #f8f8f8;
}

.teams-grid, .players-grid, .volunteers-grid {
    display:flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: .5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.team-card, .player-card, .volunteer-card {
    padding: .5rem;
    border-bottom: 1px solid #ccc;
}
.team-roles-grid{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.team-roles-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
}
.team-role {
    background-color: #e3e3e3;
    padding: 0.25em 0.75em;
    border-radius: 12px;
    font-size: 0.9em;
    text-transform: capitalize;
}
.section-title {
    text-align: center;
    font-size: 2rem;
}

/* Individual Beer Card */
.site-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: .8rem;
    transition: transform 0.3s ease;
}

.site-card img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.site-card h3 {
    margin: 0.5rem 0;
}

.site-card input, .name-input {
    width: 85%;
    max-width: 450px;
    padding: .5rem;
    margin: .5rem;
}

.site-card .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e5173f;
    display: block;
}

.add-to-cart-btn {
    background-color: #e5173f;
    color: #fff;
    border: none;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #096833;
}

.site-card .qty-select {
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* Tab Button Styles */
.tab-btn {
    padding: 0.5em 1em;
    border: none;
    background: #eee;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}
.tab-btn.active {
    background: #2e3e6f;
    font-weight: bold;
    color: #fff;
}

/* Print Button Styling */
.action-link {
    display: inline-block;
    min-width: 9rem;
    background-color: #f4f4f4!important;
    margin: 0 0.5rem!important;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    transition: background 0.2s;
}

.action-link img {
    max-width: 1.6rem;
    height: auto;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.action-link:hover {
    background: transparent;
}

.action-link:hover img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(98%) saturate(749%) hue-rotate(179deg) brightness(98%) contrast(101%);
}
/* order-items-card-link */
.order-items-card-link {
    display: inline-block;
    background-color: #f4f4f4!important;
    margin: 0 0.5rem!important;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    transition: background 0.2s;
}

.order-items-card-link img {
    max-width: 2rem;
    height: auto;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.order-items-card-link:hover {
    background: transparent;
}

.order-items-card-link:hover img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(98%) saturate(749%) hue-rotate(179deg) brightness(98%) contrast(101%);
}

/* View Cart Button */
.view-cart-btn {
    display: inline-block;
    margin-top: 1em;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #2e3e6f;
    border-radius: 5px;
    background: #fff;
    color: #2e3e6f;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-align: center;
}
.view-cart-btn:hover {
    background: #2e3e6f;
    color: #fff;
}

/* Checkout Button */
.checkout-btn {
    background: #2e3e6f;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.75em 2em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46,62,111,0.07);
    transition: background 0.2s, color 0.2s;
    margin-top: 1em;
}

.checkout-btn:hover,
.checkout-btn:focus {
    background: #1a2547;
    color: #fff;
}

/* Cart Modal Styles */
.cart-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(46,62,111,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.cart-modal-content {
    background: #fff;
    padding: 2em 2em 1em 2em;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(46,62,111,0.2);
    text-align: center;
}
.cart-modal-actions {
    margin-top: 1.5em;
    display: flex;
    gap: 1em;
    justify-content: center;
}
.cart-modal-btn {
    border: 2px solid #2e3e6f;
    background: #fff;
    color: #2e3e6f;
    font-weight: bold;
    padding: 0.75em 2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
    font-size: 1em;
}
.cart-modal-btn:hover, .cart-modal-link:hover {
    background: #2e3e6f;
    color: #fff;
}
.cart-mobile-list {
    display: none;
}
/* cart grid */
.cart-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
    margin-top: 1em;
}

.cart-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46,62,111,0.07);
    padding: 1.25em 1.5em;
    min-width: 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.cart-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

.cart-card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #2e3e6f;
}

.cart-card-type {
    font-size: 0.95em;
    color: #888;
    background: #f2f2f2;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    max-height: 1.5em;
}

.cart-card-body {
    margin-bottom: 1em;
    width: 100%;
}

.cart-card-action {
    width: 100%;
    text-align: right;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    padding: 0;
    font-size: 0.95em;
    font-weight: normal;
    border-radius: 0;
    cursor: pointer;
    text-decoration: underline;
    transition: none;
}

/* Order Items Grid */

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.order-items-list-status-title{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #333;
}
.order-items-list-status-title img {
    max-width: 2rem;
    height: auto;
    margin: 0;
    padding: .2rem;
    display: inline-block;
    vertical-align: middle;
}
.order-item-card-container {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(46,62,111,0.07);
    max-width: 700px;
    /* width: 100%; */
    box-sizing: border-box;
}
.order-item-card {
    display: flex;
    /* flex-direction: column; */
    flex-grow: 1;
    min-width: 320px; 
    max-width: 30rem; 
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46,62,111,0.07);
    padding: 1em 1.5em;
    box-sizing: border-box;
}

.order-item-actions-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 1rem;
}

.order-item-number {
    white-space: nowrap;
    font-weight: bold;
    align-self: flex-end;
}

.order-label-from{
    margin-bottom: 1rem;
}

.order-item-details-grid {
    display: grid;
    grid-template-columns: 3rem 1fr; /* Label and value columns */
    gap: 0.5em 1em;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Order Print Grid */
.order-stage-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.order-print-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-top: 1em;
    width: 100%;
}

.order-print-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46,62,111,0.07);
    padding: 1em 1.5em;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 0.5em;
}
.view-order-items-link {
    align-self: center;
    font-weight: bold;
    cursor: pointer;
    text-align: right;
}
.view-order-items-link img {
    max-width: 1.5rem;
    height: auto;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}
.order-print-card.prepare {
    border-top: 5px solid lightblue;
}
.order-print-card.active {
    box-shadow: 0 0 0 2px #a1a4ab;
    border-top: 5px solid #2e3e6f;
}

.order-print-details-grid {
    display: grid;
    grid-template-columns:  1fr 1fr 1fr; /* for three columns */
    gap: 0.5em 1em;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.order-print-actions {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    grid-column: span 3; /* Span all columns */
    width: 100%;
    margin-top: 0.5em;
    justify-content: center;
}

.ticket-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-roles-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    margin-top: 1em;
}
.team-role {
    min-width: 120px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 0.5em 1em;
    text-align: center;
}
.team-role-label {
    font-weight: bold;
    margin-bottom: 0.3em;
}
.team-player {
    margin-top: 0.2em;
    color: #2e3e6f;
}
.team-player.unassigned {
    color: #e5173f;
    font-style: italic;
}

/* Hamburger styles */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 auto 1em auto;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #2e3e6f;
    border-radius: 2px;
    transition: 0.3s;
}

/* Responsive nav menu */
@media (max-width: 700px) {
    .main-nav-options {
        position: relative;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-list {
        position: absolute;
        top: 48px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        box-shadow: 0 4px 16px rgba(46,62,111,0.18);
        border-radius: 0 0 12px 12px;
        flex-direction: column;
        gap: 0;
        width: 90vw;
        max-width: 340px;
        padding: 0.5em 0;
        display: none;
        z-index: 1000;
    }
    .nav-list.show {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid #eee;
    }
    .nav-list li:last-child {
        border-bottom: none;
    }
    .nav-list a {
        width: 100%;
        padding: 1em 0;
        font-size: 1.1rem;
        border-radius: 0;
        justify-content: center;
        color: #2e3e6f;
        background: none;
        text-align: center;
    }
    .nav-list a:hover, .nav-list a:focus {
        background: #e5173f;
        color: #fff;
    }
}