body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom, #005BBB, #FFD500);
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  margin: 20px auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.admin-container {
  width: 100%;
  max-width: 1600px;
}

h1 {
  color: #005BBB;
  font-size: 2.5em;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1::before {
  content: '🐔 ';
}

h1::after {
  content: ' 🏡';
}

.auth-links {
  text-align: center;
  margin-bottom: 20px;
}

.auth-links a {
  color: #005BBB;
  text-decoration: none;
  margin: 0 10px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.success {
  background: #4CAF50;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

label {
  font-weight: bold;
  color: #333;
  text-align: left;
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><polygon points="0,0 10,0 5,6" fill="%23333"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 30px;
}

button {
  background: #FFD500;
  color: #005BBB;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #005BBB;
  color: #FFD500;
}

.footer {
  margin-top: 20px;
  font-size: 0.8em;
  color: #666;
}

.footer::before {
  content: '🇺🇦 ';
}

/* Chicken farm theme - subtle pattern */
.chicken-bg {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50%" font-size="50" fill="%23FFD500">🐔</text></svg>');
  background-repeat: repeat;
  opacity: 0.1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background: #005BBB;
  color: #FFD500;
}

.product-item {
  margin-bottom: 10px;
}

.product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-line select {
  flex: 1;
  min-width: 200px;
}

.product-line input {
  flex: 0 0 15px;
  padding: 10px 5px;
  text-align: right;
}

.product-line .unit {
  font-size: 0.9em;
  color: #333;
  margin-left: 5px;
}

.product-line button {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #005BBB;
}

.product-line button:hover {
  color: #FFD500;
}

.product-note {
  font-size: 0.8em;
  color: #666;
  margin-top: 5px;
  display: block;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #005BBB;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* --- Mobile full-width override --- */
@media (max-width: 600px) {
  .container {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  form {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 24px 8px !important;
    font-size: 1.3em !important;
  }
  input, select, textarea {
    font-size: 1.2em !important;
    padding: 18px 12px !important;
    min-height: 54px !important;
    border-radius: 8px !important;
  }
  button {
    font-size: 1.2em !important;
    padding: 18px 0 !important;
    min-height: 54px !important;
    border-radius: 8px !important;
  }
  .footer {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    left: 0 !important;
    box-sizing: border-box !important;
  }
}
/* --- End mobile override --- */

/* --- TEST OVERRIDE REMOVED --- */
