* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Avenir', Arial, sans-serif;
    line-height: 1.6;
    padding: 1rem;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('public/background.webp') no-repeat center center fixed;
    background-size: cover;
    padding-bottom: 2.2rem;
}

body:has(.admin-container) {
    background: #f5f5f5 !important;
    background-image: none !important;
}

.admin-body {
    padding: 0;
    min-height: 100vh;
    display: block;
    align-items: initial;
    justify-content: initial;
}

.container {
    width: 95vw;
    height: auto;
    margin: 1rem auto;
    padding: 1.2rem 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: white;
    text-align: center;
}

h1 {
    color: #e1007c;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: #333;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-align: start;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background-color: white;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input.error,
select.error {
    border-color: #ff4444;
    background-color: #fff8f8;
}

.error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

select {
    cursor: pointer;
}

select option {
    padding: 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #000;
    border-color: #000;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 55%;
    top: 40%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.checkbox-group .error-message {
    margin-top: 0.5rem;
}

.submit-btn {
    background-color: #e1007c;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background-color 0.3s;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* it keeps the original background color when autofilled */
.autofill:-webkit-autofill {
  transition: background-color 5000s ease-in-out 0s;
}

.radio-group {
    margin-bottom: 1.5rem;
}

.radio-group > label {
    display: block;
    margin-bottom: 0.5rem;
}

.radio-options {
    display: flex;
    gap: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    border-color: #000;
    background-color: #000;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radio-option label {
    margin: 0;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .container {
        margin: 1rem auto;
        padding: 2.5rem;
        min-height: auto;
        display: block;
        justify-content: initial;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .form-group {
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    label {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="password"] {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .checkbox-group label {
        font-size: 1rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .radio-group > label {
        font-size: 1rem;
    }

    .radio-option label {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 0.5rem;
        height: auto;
        min-height: 100vh;
        display: block;
        align-items: initial;
        justify-content: initial;
        overflow-y: auto;
    }

    .container {
        margin: 0.5rem auto;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        margin-top: 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.back-btn {
    background-color: #666;
}

.back-btn:hover {
    background-color: #555;
}

#validationForm .form-group {
    background-color: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

#validationForm input[type="text"],
#validationForm input[type="tel"],
#validationForm input[type="email"],
#validationForm input[type="password"] {
    background-color: white;
}

#validationForm .radio-group,
#validationForm .checkbox-group {
    background-color: #f9f9f9;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.field-header label {
    font-size: 1.2rem;
    font-weight: bold;
}

.edit-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.edit-btn:hover {
    color: #333;
}

.field-content {
    position: relative;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.field-content span {
    font-size: 1.3rem;
    color: #333;
    padding: 0.2rem 0;
}

#photo-consent-display {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.selection-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.selection-btn {
    padding: 1.5rem;
    font-size: 1.8rem;
    background-color: #e1007c;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    color: white;
}

.selection-btn:hover {
    background-color: #333;
    color: #fff;
}

.spin-title {
    display: inline-block;
    background: #e1007c;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 12px;
    font-weight: 100;
    font-size: 2rem;
    margin: 0 auto 2.2rem auto;
    text-align: center;
}

.spin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    gap: 0.8rem;
    position: relative;
}

#wheelcanvas {
    margin-top: 0.5rem;
    margin-bottom: 0.8rem;
    max-width: 400px;
    height: auto;
    display: block;
}

.spin-btn, .continue-btn {
    color: #fff;
    background: #e1007c;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 0.7rem;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.spin-result {
    background: #e1007c;
    color: #fff;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 16px #e1007c44;
}

.spin-arrow {
    width: 0;
    height: 0;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-top: 42px solid white;
    position: absolute;
    left: 50%;
    top: 10;
    transform: translateX(-50%);
    z-index: 20;
    filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 2px #000);
}

.spin-arrow::after {
    content: none;
}

@media (max-width: 700px) {
    #wheelcanvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100vw;
    }
    .spin-container {
        margin-top: 1rem;
    }
    h1 {
        font-size: 2.1rem !important;
        margin-bottom: 1.1rem;
    }
    .admin-header-group .admin-search {
        height: 48px;
        min-height: 48px;
        font-size: 1rem;
        padding: 0 1rem;
        border-radius: 8px;
    }
    .admin-btn-group .admin-btn {
        height: 48px;
        min-height: 48px;
        font-size: 1rem;
        padding: 0 1.2rem;
        border-radius: 8px;
    }
    .pagination-btn {
        font-size: 0.95rem;
        padding: 0.3em 0.7em;
        min-width: 32px;
        min-height: 32px;
        border-radius: 7px;
    }
    .download-btn {
        font-size: 1.1em;
        padding: 0.3em 0.7em;
        min-width: 32px;
        min-height: 32px;
        border-radius: 7px;
    }
}

.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

#cameraPreview, #photoCanvas {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    background: #000;
}

.capture-btn {
    background: #e1007c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

@media (max-width: 700px) {
    #cameraPreview, #photoCanvas {
        max-width: 100vw;
    }
    .camera-container {
        margin-top: 1rem;
    }
}

.timer {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #800000;
    text-align: center;
}

.home-btn {
    background: #e1007c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
    display: block;
}

.admin-container {
    max-width: 100vw;
    margin: 4vh 0 0;
    padding: 0;
}

.admin-btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.admin-btn {
    background: #e1007c;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn.active {
    background: #5F093D;
}

.admin-tables {
    width: 100%;
    margin: 0 auto;
}

.admin-table-scroll {
    width: 90%;
    margin: 0 auto;
    overflow-x: auto;
}

.admin-table {
    width: 90%;
    margin: 0 auto 2rem auto;
}

.admin-table table {
    min-width: 900px;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.admin-table th {
    background: #e0b3c6;
    font-weight: bold;
    white-space: nowrap;
    color: #800000;
    border-bottom: 2px solid #b81e67;
}

.admin-table img {
    max-width: 40px;
    max-height: 40px;
    border-radius: 8px;
    display: block;
}

@media (max-width: 700px) {
    .admin-container {
        width: 100%;
        margin: 0;
        padding: 0 0.5rem;
    }
    .admin-btn-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        width: 100%;
        margin-bottom: 1rem;
    }
    .admin-btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        border-radius: 8px;
    }
    .admin-table-scroll, .admin-table {
        width: 100%;
        max-width: 100vw;
        margin: 0;
    }
    .admin-table table {
        min-width: 600px;
    }
    .admin-table-controls {
        width: 100%;
        margin-bottom: 0.7rem;
    }
    .pagination {
        flex: 1 1 auto;
        justify-content: flex-start;
    }
    #downloadUsersCsv {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 1.3em;
        padding: 0.5em 0.7em;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-header-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin: 0 0 1rem 0;
    }
    
    .admin-header-group .admin-search {
        width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
    
    .admin-table {
        width: 100%;
        margin: 0;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    min-height: 48px;
}

.pagination-btn {
    background: #fff;
    color: #800000;
    border: 1px solid #b81e67;
    border-radius: 6px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    min-width: 36px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn.active, .pagination-btn:active {
    background: #b81e67;
    color: #fff;
}

.pagination-btn:disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-btn:hover {
    background-color: #f0f0f0;
}

.download-btn {
    background: #fff;
    color: #e1007c;
    border: 2px solid #e1007c;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: #e1007c;
    color: #fff;
}

.delete-btn {
    color: #f44336;
}

.delete-btn:hover {
    background-color: #ffebee;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: black;
}

.close {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #374151;
}

.modal-body {
    margin: 1.5rem 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: black;
    margin-left: 0.25rem;
}

.modal-form input {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input:focus {
    outline: none;
    border-color: #3B3B98;
}

.modal-form input.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: center;
    }
}

.modal-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

@media (min-width: 640px) {
    .modal-button {
        width: auto;
    }
}

.modal-button.cancel {
    background-color: transparent;
    color: #6b7280;
}

.modal-button.cancel:hover {
    color: #374151;
}

.modal-button.submit {
    background-color: #F12E90;
    color: white;
    border: none;
}

.modal-button.submit:hover {
    background-color: #5F093D;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-buttons button,
.add-premiu-btn,
.add-tableta-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: #F12E90;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.action-buttons button:hover,
.add-premiu-btn:hover,
.add-tableta-btn:hover {
    background-color: #5F093D;
}

.admin-buttons button.active {
    background-color: #5F093D;
}

@media (min-width: 700px) {
    #userForm {
        display: flex;
        flex-wrap: wrap;
        gap: 1.2rem 2rem;
    }
    #userForm .form-group, #userForm .radio-group, #userForm .checkbox-group {
        flex: 1 1 40%;
        min-width: 15rem;
        margin-bottom: 0.5rem;
    }
    #userForm .checkbox-group, #userForm .radio-group {
        flex-basis: 100%;
    }
    #userForm .submit-btn {
        flex-basis: 100%;
        margin-top: 0.5rem;
    }

    #validationForm {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 1rem;
    }
    #validationForm .form-group, #validationForm .radio-group, #validationForm .checkbox-group {
        flex: 1 1 40%;
        min-width: 15rem;
        margin-bottom: 0.2rem;
    }
    #validationForm .checkbox-group, #validationForm .radio-group {
        flex-basis: 100%;
    }
    #validationForm .button-group {
        flex-basis: 100%;
        margin-top: 0.2rem;
    }
}

@media (min-width: 700px) {
    .spin-container {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    #wheelcanvas {
        max-width: 25rem;
        margin-bottom: 0.8rem;
    }
    .spin-btn, .continue-btn {
        font-size: 1rem;
        margin-bottom: 0.2rem;
        margin-top: 0.2rem;
        padding: 0.7rem 0.7rem;
    }
    .spin-arrow {
        margin-top: 0.5rem;
    }
    .spin-result, .timer {
        margin-top: 0.2rem;
    }
}

@font-face {
    font-family: 'Avenir';
    src: url('fonts/Avenir.ttc') format('truetype-collection');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.wine-arrow {
    color: grey;
    font-size: 1em;
    transition: color 0.2s;
}

.wine-arrow.active {
    color: #5F093D;
    font-weight: bold;
}

.user-photo {
  background: #eee;
  filter: blur(8px);
  transition: filter 0.3s;
}
.user-photo.loaded {
  filter: blur(0);
}

.button-group > button,
button.spin-btn,
button.continue-btn {
    color: #fff;
    background: #e1007c;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.button-group > button:hover,
button.spin-btn:hover,
button.continue-btn:hover {
    background: #b81e67;
}

.container-lucky-spin-logo {
  position: fixed;
  top: 6rem;
  right: 0rem;
  z-index: 100;
  max-width: 14rem;
  height: auto;
}

.container-murfatlar-vinul-logo {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  max-width: 12rem;
  height: auto;
}

.container-m1-logo {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 100;
  max-width: 12rem;
  height: auto;
}

.promo-footer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #e1007f;
  color: #fff;
  font-size: 0.6rem;
  padding: 0.5rem 1vw 0.5rem 1vw;
  text-align: center;
  z-index: 200;
  line-height: 1.4;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}

body:has(.promo-footer-bar) {
  padding-bottom: 8rem;
}

@media (max-width: 700px) {
  body:has(.promo-footer-bar) {
    padding-bottom: 0;
  }
  
  .promo-footer-bar {
    position: static !important;
    left: unset !important;
    right: unset !important;
    bottom: unset !important;
    width: 100vw;
    font-size: 0.5rem;
    padding: 0.4rem 0.8vw 0.4rem 0.8vw;
    line-height: 1.3;
    margin-left: calc(50% - 50vw);
  }

  .spin-title {
    font-size: 1.5rem;
  }

  .container-lucky-spin-logo {
    display: none;
  }

  .container-murfatlar-vinul-logo {
    display: none !important;
  }

  .container-m1-logo {
    display: none !important;
  }
}

@keyframes win-pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
    text-shadow: none;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
    text-shadow: 0 0 16px #fff, 0 0 32px #e1007c;
  }
  100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 8px #fff, 0 0 16px #e1007c;
  }
}

.spin-result.win-pop-animate {
  animation: win-pop 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.pagination-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
}

.admin-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 81%;
    margin-left: auto;
    margin-right: auto;
}

.admin-header-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 320px;
    margin: 0 auto 1.2rem auto;
}

.admin-header-group .admin-search {
    width: 100%;
    min-width: 240px;
    margin-top: 0.5rem;
    margin-bottom: 0;
    box-sizing: border-box;
}

.admin-search {
    padding: 0.7rem 1rem;
    border: 1.5px solid #e1007c;
    border-radius: 8px;
    font-size: 1rem;
    margin-right: 1rem;
    min-width: 220px;
    outline: none;
    transition: border 0.2s;
}
.admin-search:focus {
    border-color: #5F093D;
}

.hostess-greeting, .logout-btn {
  color: #e1007c !important;
}

.hostess-greeting {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: right;
  margin-right: 0.5rem;
}

.logout-btn {
  background: #fff !important;
  border: none;
  color: #e1007c !important;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  text-align: right;
  margin-right: 0.5rem;
}

.hostess-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.location-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#selected-location-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.change-location-btn-inline {
    background-color: #e1007c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.change-location-btn-inline:hover {
    background-color: #c5006a;
}

.hostess-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.hostess-greeting {
    font-size: 0.9rem;
    color: #333;
}

.logout-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #5a6268;
}

.location-error-container {
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.location-error-container .error-message {
    text-align: center;
    display: block;
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .hostess-bar {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .location-inline {
        justify-content: center;
    }
    
    .hostess-info {
        align-items: center;
    }
}

@media screen and (min-width: 1500px) {
    .container {
        max-width: 38rem;
    }
}

@media (min-width: 701px) {
    .admin-header-group {
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        display: flex;
        flex-direction: column;
    }
    .admin-btn-group {
        justify-content: center;
        width: 100%;
    }
    .admin-header-group .admin-search {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        min-width: 320px;
        max-width: 100%;
    }
}

.attention-message {
    background-color: rgba(255, 165, 0, 0.2);
    text-align: center;
    width: 100%;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border-radius: 0.5rem;
}

.button-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}
.button-spinner:after {
  content: " ";
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-color: #fff #e1007c #fff #e1007c;
  animation: button-spinner-dual-ring 1.2s linear infinite;
}
@keyframes button-spinner-dual-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Location popup overlay */
.location-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-content {
    background: white;
    border-radius: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    color: #e1007c;
    font-size: 1.5rem;
    margin: 0;
}

.close-popup {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #333;
}

.popup-body {
    padding: 1.5rem;
}

.popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.popup-footer .submit-btn {
    min-width: 120px;
}

.popup-footer .submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}