* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacMacFont, 'Segoe UI', sans-serif;
    background: #0f0f1e;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Image/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233, 30, 99, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: #112025;
    border-radius: 0;
    color: white;
    z-index: 100;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.header > .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    order: 1;
}

.header .menu {
    display: flex;
    gap: 10px; /* Ruimte tussen de 3 knoppen */
}

.dropdown-btn {
    white-space: nowrap;
    padding: 8px 12px;
}

/* Zorg dat het menu niet breder is dan nodig */
.dropdown-content {
    min-width: 180px; 
}

/* Specifieke aanpassing voor de radio-knoppen naast elkaar voor minder hoogte */
.figure-select-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

h1 {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
    text-align: right;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.menu button {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.625rem 1.125rem;
    cursor: pointer;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    white-space: nowrap;
}

.menu button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-0.0625rem);
}

.dropdown {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.dropdown-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.625rem 1.125rem;
    cursor: pointer;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    white-space: nowrap;
}

.dropdown-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-0.0625rem);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    min-width: 12.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.8);
    z-index: 2000;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 0;
    border: 0.0625rem solid rgba(0, 0, 0, 0.5);
    left: 0;
    top: 100%;
    backdrop-filter: blur(0.75rem);
    padding: 0;
}

.dropdown-content a {
    color: #ffffff;
    padding: 0.875rem 1.125rem;
    text-decoration: none;
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #ffffff;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.dropdown-item-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-item-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 0.125rem solid rgba(255, 255, 255, 0.6);
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item-toggle input[type="checkbox"]:checked {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

.dropdown-item-toggle input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
}

.dropdown-item-toggle label {
    cursor: pointer;
    flex-grow: 1;
}

.dropdown-separator {
    height: 0.0625rem;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.25rem 0;
}

.loket-mode-switch-in-dropdown {
    padding: 0.625rem 1.125rem 0.625rem 1.125rem;
}

.dropdown-item-header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.loket-mode-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 0.0625rem solid rgba(0, 0, 0, 0.4);
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    white-space: nowrap;
    width: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}

.loket-mode-switch button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
    flex-shrink: 1;
    white-space: nowrap;
    flex-grow: 1;
}

.loket-mode-switch button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.loket-mode-switch button.active {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
}

.loket-names-section { 
    display: none; 
}

.loket-names-section-in-dropdown {
    padding: 0.625rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.loket-name-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.loket-name-input-group:focus-within {
    border-color: rgba(77, 171, 247, 0.8);
    background: rgba(0, 0, 0, 0.6);
}

.loket-name-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
}

.loket-name-input-group input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    width: 6.25rem;
    max-width: 7.5rem;
    outline: none;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

.loket-name-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#loket1Name, #loket2Name {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    margin-left: 0.5rem;
    flex-grow: 1;
    white-space: nowrap;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.5);
}

.content-wrapper {
    padding: 1rem;
}

.container {
    display: grid;
    grid-template-columns: 30rem 1fr 1fr;
    gap: 1.5rem;
    transition: grid-template-columns 0.3s ease-in-out;
}

.container.one-loket-mode {
    grid-template-columns: 30rem 1fr;
}

.section {
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 0;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    height: 18rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.75rem 3rem rgba(0, 0, 0, 0.4);
}

.section-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.03125rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.wachtrij-section {
    max-width: 30rem;
}

.wachtrij-section .section-header {
    background: #C55454;
}

.loket-section .section-header {
    background: #1D64AE;
}

.loket2 .section-header {
    background: #3EAE1D;
}

.dark {
    background: linear-gradient(135deg, #1e1e2e 0%, #27273a 100%);
}

.shortcuts {
    padding: 0;
    background: transparent;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
}

.shortcut-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.keyboard-icon {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.shortcut-key {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.3);
    min-width: 1.5625rem;
    text-align: center;
    display: inline-block;
}

.queue-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.queue-list {
    padding: 1rem;
    height: 100%;
    overflow-y: auto;
}

.queue-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 0, 0, 0.95);
    backdrop-filter: blur(0.75rem);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 0.125rem solid rgba(255, 255, 255, 0.3);
    text-align: center;
    white-space: nowrap;
    max-width: 90vw;
}

.queue-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.queue-list::-webkit-scrollbar {
    width: 0.375rem;
}

.queue-list::-webkit-scrollbar-track {
    background: transparent;
}

.queue-list::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 0.625rem;
}

.queue-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.7);
}

.queue-item {
    color: white;
    padding: 0.375rem 1rem;
    margin-bottom: 0.625rem;
    border-radius: 0.625rem;
    cursor: grab;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.queue-item:hover {
    transform: translateX(0.25rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.queue-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.queue-item-name {
    flex-grow: 1; 
}

.delete-queue-item-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8); 
    font-size: 1.25rem; 
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0; 
}

.delete-queue-item-btn:hover {
    color: #ff4a4a; 
    transform: scale(1.1);
}

.delete-queue-item-btn:active {
    transform: scale(0.9);
}

.loket-display {
    background: rgba(77, 171, 247, 0.15);
    border: 0.1875rem dashed rgba(77, 171, 247, 0.4);
    flex: 1;
    margin: 1rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 9.375rem;
    margin-bottom: 1rem;
}

.loket-display:not(:empty) {
    background: rgba(77, 171, 247, 0.25);
    border-color: rgba(77, 171, 247, 0.6);
}

.loket-display.drag-over-loket {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 1.25rem 0.3125rem rgba(255, 215, 0, 0.5);
}

.loket2 .loket-display {
    background: rgba(81, 207, 102, 0.15);
    border-color: rgba(81, 207, 102, 0.4);
}

.loket2 .loket-display:not(:empty) {
    background: rgba(81, 207, 102, 0.25);
    border-color: rgba(81, 207, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(77, 171, 247, 0.7);
    }
    50% {
        box-shadow: 0 0 1.875rem 0.9375rem rgba(77, 171, 247, 0);
    }
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(81, 207, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 1.875rem 0.9375rem rgba(81, 207, 102, 0);
    }
}

.loket-display.animate {
    animation: pulse 0.6s ease-out;
}

.loket2 .loket-display.animate {
    animation: pulseGreen 0.6s ease-out;
}

@keyframes slideInBounce {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    70% {
        transform: scale(0.9) rotate(-5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.name-animate {
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.confetti {
    position: absolute;
    opacity: 0;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(18.75rem) rotate(720deg);
        opacity: 0;
    }
}

.rocket-animation {
    position: fixed;
    font-size: 3rem;
    z-index: 10000;
    pointer-events: none;
    filter: drop-shadow(0 0 0.625rem rgba(255, 200, 0, 0.8));
}

@keyframes rocketFly {
    0% {
        transform: translate(0, 0) rotate(-45deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(var(--dx-mid), var(--dy-mid)) rotate(0deg) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(0.5);
        opacity: 0;
    }
}

.rocket-trail {
    position: fixed;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

@keyframes trailFade {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.queue-item.just-added {
    animation: queueItemPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes queueItemPop {
    0% {
        transform: scale(0) translateX(-1.25rem);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateX(0);
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

.children-section {
    background: rgba(30, 30, 45, 0.6);
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    padding: 0;
    margin-top: 1.5rem;
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
}

.children-content-main-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    gap: 1.5rem;
    flex: 1;
    min-height: 12.5rem;
}

.children-list-column {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
}

.children-add-options-column {
    display: flex;
    flex-direction: column; 
    gap: 1rem;
    flex-shrink: 0;
    width: 25rem;
    order: 2;
}

.manual-add-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    width: 100%;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.manual-add-name-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.manual-add-name-group input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.manual-add-name-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.manual-add-name-group input:focus {
    border-color: #4dabf7;
    background: rgba(0, 0, 0, 0.6);
}

.manual-add-name-group button {
    background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
    color: white;
    padding: 0.625rem 1.125rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
    width: 100%;
}

.manual-add-name-group button:hover {
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.manual-add-name-group button:active {
    transform: scale(0.98);
}

.children-buttons {
    display: grid;
    /* We maken de kolommen iets smaller voor namen */
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
    gap: 10px;
    width: 100%;
    align-items: start;
}

.child-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5px;
}

/* Voor de emoticons (Figuurtjes modus) */
.figure-mode-btn {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    font-size: 3rem !important;
}

.child-btn:has(.jules-img) {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
}

.figure-mode-active .queue-item-name {
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.figure-mode-active .loket-display .name {
    font-size: 5rem;
}

.figure-mode-active .queue-item {
    height: 4rem;
}

.figure-mode-active .child-btn,
.figure-mode-active .queue-item {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.figure-mode-active .child-btn.in-queue {
    opacity: 0.2;
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.child-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.3);
}

.child-btn:active {
    transform: scale(0.98);
}

.child-btn.in-queue {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.child-btn.in-queue::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 0.125rem;
    background: #ff4a4a;
    transform: rotate(-5deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 2;
}

.child-btn img, .queue-item-name img, .name img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.child-btn .jules-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.child-btn {
    width: 100%;
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.figure-mode-active .queue-item, 
.display-mode-jules .queue-item {
    height: 60px; 
}

.next-btn {
    background: linear-gradient(135deg, #1D64AE 0%, #17528a 100%);
    color: white;
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
    margin-right: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.loket2 .next-btn {
    background: linear-gradient(135deg, #3EAE1D 0%, #328c17 100%);
}

.next-btn:hover {
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

.next-btn:active {
    transform: scale(0.98);
}

.custom-context-menu {
    display: none;
    position: fixed;
    background: rgba(45, 45, 60, 0.95);
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 0.3125rem 0;
    min-width: 9.375rem;
    overflow: hidden;
}

.context-menu-item {
    padding: 0.625rem 0.9375rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.context-menu-item:hover {
    background: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
}

.child-btn.context-active {
    outline: 0.125rem solid #4dabf7;
    box-shadow: 0 0 0.625rem rgba(77, 171, 247, 0.7);
}

@media (max-width: 75rem) {
    .container {
        gap: 1.25rem;
    }
    .section-header {
        font-size: 1.0625rem;
    }
    .loket-display {
        font-size: 3rem;
    }
}

@media (max-width: 64rem) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .header > .menu {
        order: 1;
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 1.75rem;
        margin-left: 0;
        width: 100%;
        text-align: center;
        order: -1;
    }

    .menu {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }
    
    .loket-mode-switch {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .container.one-loket-mode {
        grid-template-columns: 1fr 1fr; 
    }

    .section {
        height: 28.125rem;
    }

    .loket-display {
        font-size: 3rem;
    }

    .children-content-main-layout {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        min-height: auto;
    }

    .children-list-column,
    .children-add-options-column {
        width: 100%;
        max-width: 100%;
        order: unset;
    }

    .children-add-options-column {
        flex-direction: column;
        gap: 1rem;
    }

    .manual-add-block {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
    }
    
    .manual-add-name-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .loket-name-input-group {
        margin: 0.5rem 0;
        width: 100%;
    }
}

@media (max-width: 48rem) {
    .header {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .header > .menu {
        justify-content: flex-start;
        width: auto;
        order: 1;
    }

    .header > .menu > .dropdown {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .header > .menu > .dropdown > .dropdown-btn {
        padding: 0.625rem 0.75rem;
    }

    .header > h1 {
        display: none;
    }
    
    .header > .menu > .loket-mode-switch,
    .header > .loket-names-section {
        display: none; 
    }

    .dropdown-content {
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .menu, .loket-names-section, .loket-mode-switch {
        gap: 0.375rem;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container.one-loket-mode {
        grid-template-columns: 1fr;
    }

    .section {
        height: auto;
        min-height: 15.625rem;
    }

    .section-header {
        font-size: 0.9375rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .shortcuts {
        margin-left: 0;
    }

    .next-btn {
        margin-left: 0;
        margin-right: 0;
        width: fit-content;
    }

    .loket-display {
        font-size: 2.5rem;
        margin: 0.75rem;
        min-height: 7.5rem;
    }

    .children-add-options-column {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .queue-notification {
        font-size: 0.875rem;
        padding: 0.75rem 1.125rem;
    }

    .child-btn {
        font-size: 1.75rem;
        min-width: 3.5rem;
        min-height: 3.5rem;
        padding: 0.5rem 0.875rem;
    }

    .figure-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
        gap: 0.375rem;
        max-height: 15rem;
    }
    
    .figure-picker-item {
        font-size: 1.5rem;
        padding: 0.375rem;
    }
}

@media (max-width: 30rem) {
    .header {
        gap: 0.5rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    .dropdown-btn, .loket-mode-switch button, .dropdown-item-toggle {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }
    
    .loket-name-input-group label {
        font-size: 0.8125rem;
    }

    .loket-name-input-group input {
        width: 5rem;
        font-size: 0.8125rem;
    }

    .dropdown-content a {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
    
    .queue-item {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }

    .delete-queue-item-btn {
        font-size: 1.125rem;
    }

    .loket-display {
        font-size: 2.25rem;
    }

    .child-btn {
        font-size: 1.5rem;
        min-width: 3rem;
        min-height: 3rem;
        padding: 0.375rem 0.625rem;
    }

    .figure-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
    }
    
    .figure-picker-item {
        font-size: 1.25rem;
    }
}

.figure-select-in-dropdown {
    padding: 0.625rem 1.125rem;
}

.figure-select-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.75rem);
    border: 0.0625rem solid rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.2);
}

.figure-select-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.figure-select-radio-group label:hover {
    color: #4dabf7;
}

.figure-select-radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 0.125rem solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.figure-select-radio-group input[type="radio"]:checked {
    background-color: #4dabf7;
    border-color: #4dabf7;
}

.figure-select-radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: white;
}

.flying-figure-animation {
    position: fixed;
    font-size: 4rem;
    z-index: 10000;
    pointer-events: none;
    filter: drop-shadow(0 0 0.625rem rgba(255, 200, 0, 0.8));
}

@keyframes flyingFigureAnimation {
    0% {
        transform: translate(0, 0) rotate(var(--start-rotate, -45deg)) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(var(--dx-mid), var(--dy-mid)) rotate(var(--mid-rotate, 0deg)) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(var(--end-rotate, 45deg)) scale(0.5);
        opacity: 0;
    }
}

.import-file-btn, .toggle-add-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.import-file-btn:hover, .toggle-add-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-0.0625rem);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.children-add-options-column {
    animation: slideDown 0.3s ease-out;
}

.display-mode-switch-in-dropdown {
    padding: 0.625rem 1.125rem;
}

.figure-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3.5rem, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    max-height: 18.75rem;
    overflow-y: auto;
    width: 100%;
}

.figure-picker-grid::-webkit-scrollbar {
    width: 0.375rem;
}

.figure-picker-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.625rem;
}

.figure-picker-grid::-webkit-scrollbar-thumb {
    background: rgba(77, 171, 247, 0.5);
    border-radius: 0.625rem;
}

.figure-picker-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(77, 171, 247, 0.7);
}

.figure-picker-item {
    background: rgba(77, 171, 247, 0.2);
    border: 0.125rem solid rgba(77, 171, 247, 0.4);
    border-radius: 0.5rem;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.figure-picker-item.already-selected {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.figure-picker-item:hover {
    background: rgba(77, 171, 247, 0.4);
    border-color: rgba(77, 171, 247, 0.6);
    transform: scale(1.1);
}

.figure-picker-item:active {
    transform: scale(0.95);
}