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

body {
  font-family: sans-serif;
  background: #f0f2f5;
  color: #333;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}

h2 { font-size: 1.1rem; margin-bottom: 10px; }

.card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-stop {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-save {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

/* Rankinio įvedimo mygtukas – pilkesnis, mažiau ryškus nei Skenuoti */
.btn-manual-save {
  padding: 10px 14px;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-secondary {
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.btn-refresh {
  margin-bottom: 10px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.btn-delete {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.kodas-display {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px;
  background: #f9fafb;
  border-radius: 8px;
  word-break: break-all;
}

.irasas {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.irasas-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.irasas-info span {
  font-size: 0.8rem;
  color: #888;
}

/* Custom dropdown */
.custom-select-wrapper {
  position: relative;
}

.custom-select-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 15px;
}

.custom-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 4px;
  overflow: hidden;
}

.custom-select-item:hover {
  background: #f3f4f6;
}
