body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f9;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

input, select {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
}

button {
  padding: 10px 14px;
  margin: 5px 5px 0 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #4CAF50;
  color: white;
}

button:hover {
  opacity: 0.9;
}

.actions {
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

#totals {
  margin-top: 15px;
}

#preview {
  margin-top: 20px;
}

@media print {
  body * { visibility: hidden; }
  #preview, #preview * { visibility: visible; }
  #preview { position: absolute; top: 0; left: 0; width: 100%; }
}

#itemsTable td input {
    padding: 8px 10px;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#itemsTable td {
    padding: 10px;
}

.lang-switch {
    position: relative;
    display: flex;
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 2px;
    width: fit-content;
    border: 1px solid #ccc;
}

.lang-switch input {
    display: none; /* Hide the actual radio dots */
}

.lang-switch label {
    padding: 6px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
    transition: color 0.3s ease;
    color: #555;
}

/* Color for the selected text */
.lang-switch input:checked + label {
    color: #fff;
}

/* The sliding background pill */
.switch-selection {
    position: absolute;
    height: 30px;
    width: 45px; /* Adjust based on your label padding */
    background: #007bff; /* Sri Lankan Blue or your brand color */
    border-radius: 18px;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Logic to move the pill based on selection */
#en:checked ~ .switch-selection { transform: translateX(0); }
#si:checked ~ .switch-selection { transform: translateX(48px); }
#ta:checked ~ .switch-selection { transform: translateX(96px); }