body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

input {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 80%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.container {
    text-align: center;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

button {
    margin-top: 10px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

#cancelBtn {
    background-color: #dc3545;
    margin-top: 10px;
}

#cancelBtn:hover {
    background-color: #a71d2a;
}

#loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007BFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-counter {
    font-size: 14px;
    color: #666;
    margin: 5px 0 15px;
    padding: 5px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: inline-block;
}

.queue-status {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 14px;
    border-radius: 4px;
    display: none;
}

.counter-updated {
    /* reserved: no visual flash on counter update */
}

/* Selector de idioma */
.lang-switcher a {
    margin-left: 0.35em;
    color: #007BFF;
    text-decoration: none;
}
.lang-switcher a:hover {
    text-decoration: underline;
}
.lang-switcher a.active {
    font-weight: 700;
    color: #333;
}

/* Selector de idioma: desplegable con banderas (fondo claro: login, index, admin) */
.locale-dropdown--light { position: relative; display: inline-block; }
.locale-dropdown--light .locale-dropdown__trigger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 14px; color: #555;
  background: #f5f5f5; border: 1px solid #ddd;
  border-radius: 8px; cursor: pointer; transition: background .2s, border-color .2s;
}
.locale-dropdown--light .locale-dropdown__trigger:hover { background: #eee; border-color: #ccc; }
.locale-dropdown--light .locale-dropdown__flag { font-size: 1rem; line-height: 1; }
.locale-dropdown--light .locale-dropdown__chevron { font-size: 0.5rem; opacity: 0.7; transition: transform .2s; }
.locale-dropdown--light.is-open .locale-dropdown__chevron { transform: rotate(180deg); }
.locale-dropdown--light .locale-dropdown__menu {
  position: absolute; top: calc(100% + 4px); right: 0; min-width: 8rem;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12); padding: 0.25rem; display: none; z-index: 100;
}
.locale-dropdown--light.is-open .locale-dropdown__menu { display: block; }
.locale-dropdown--light .locale-dropdown__item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  font-size: 14px; color: #333; text-decoration: none; border-radius: 6px; transition: background .2s;
}
.locale-dropdown--light .locale-dropdown__item:hover { background: #f0f0f0; }
.locale-dropdown--light .locale-dropdown__item.is-active { color: #007BFF; font-weight: 600; }

.app-footer {
    margin-top: 1.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.app-footer a {
    color: #888;
    text-decoration: none;
}
.app-footer a:hover {
    color: #555;
    text-decoration: underline;
}
.app-footer-sep {
    margin: 0 0.35rem;
    color: #ccc;
}
