:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.stats-card {
  border-left: 4px solid var(--primary-color);
}

.stats-card.success {
  border-left-color: var(--success-color);
}

.stats-card.warning {
  border-left-color: var(--warning-color);
}

.stats-card.danger {
  border-left-color: var(--danger-color);
}

.quail-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.quail-card:hover {
  transform: scale(1.02);
}

.quail-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

.badge-large {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.qr-code-container {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.alert-item {
  border-left: 4px solid var(--warning-color);
  margin-bottom: 0.5rem;
}

.alert-item.high-priority {
  border-left-color: var(--danger-color);
}

.alert-item.low-priority {
  border-left-color: var(--info-color);
}

.record-entry {
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 0;
}

.record-entry:last-child {
  border-bottom: none;
}

.btn-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.btn-floating:hover {
  transform: scale(1.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .btn-floating {
    bottom: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
  }

  .quail-image {
    height: 150px;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Print styles for QR codes */
@media print {
  body * {
    visibility: hidden;
  }

  .qr-code-container,
  .qr-code-container * {
    visibility: visible;
  }

  .qr-code-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    page-break-after: always;
  }
}

.pedigree-tree {
  overflow-x: auto;
  padding: 1rem;
}

.pedigree-node {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.25rem;
  background: white;
  min-width: 120px;
  text-align: center;
}

.pedigree-node.male {
  border-color: var(--info-color);
  background-color: rgba(13, 202, 240, 0.1);
}

.pedigree-node.female {
  border-color: #e91e63;
  background-color: rgba(233, 30, 99, 0.1);
}

.health-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.health-status.healthy {
  background-color: var(--success-color);
}

.health-status.sick {
  background-color: var(--danger-color);
}

.health-status.quarantine {
  background-color: var(--warning-color);
}

.breeding-pair {
  background: linear-gradient(45deg, rgba(13, 202, 240, 0.1) 50%, rgba(233, 30, 99, 0.1) 50%);
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}