* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #061433;
    font-family: Arial, sans-serif;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern browsers */
    color: white;
    overflow: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px; /* Equal padding all around */
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Modern browsers */
    box-sizing: border-box;
}

.scroll-box {
    flex: 1; /* Takes up remaining space */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0px;
    /* Remove margin-bottom completely */
    min-height: 0; /* Important: allows flex item to shrink */
}

.scroll-content {
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    color: white;
    line-height: 1.5;
}

/* Rest of your CSS stays the same... */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type=number] {
    -moz-appearance: textfield;
    width: 10ch;
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    color: white;
}

input[type=text] {
    -moz-appearance: textfield;
    width: 30ch; 
    max-width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    color: white;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

input[type=number] {
    -moz-appearance: textfield !important;
}

input[type=number]::-ms-clear,
input[type=number]::-ms-expand {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.button-group {
    display: flex;
    gap: 16px;
    width: 100%;
}

button {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 4px 16px;
    flex: 1;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
}

button:active {
    background-color: rgba(255, 255, 255, 0.7);
    color: #222;
    transform: scale(0.98);
    transition: none;
}

/* Style for select dropdowns */
select {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0px 8px;
    font-size: 16px;
    height: 18px; /* Match your input height - adjust as needed */
    line-height: 18px; /* Control text vertical alignment */
    
    /* Add custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
    padding-right: 28px; /* Make room for the arrow */
}

select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 4px;
}

select option:checked {
    background-color: #0066cc;
    color: white;
}