
:root {
  --primary-color: #6a5acd;
  --primary-light: #9c91e6;
  --primary-dark: #483d8b;
  --secondary-color: #6c757d;
  --accent-color: #ff7e5f;
  --background-color: #f8f9fa;
  --card-color: #ffffff;
  --text-color: #333333;
  --text-light: #777777;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --info-color: #2196f3;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

main {
  flex: 1;
  padding: 30px 0;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: white;
}

header p {
  opacity: 0.9;
  font-family: var(--body-font);
  font-weight: 400;
}

.card {
  background-color: var(--card-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin-bottom: 20px;
  transition: var(--transition);
  max-width: 800px;
  margin: 0 auto;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}


.step-section,
.intro-section {
  display: none;
  margin: 20px 0;
  animation: fadeIn 0.5s ease-in-out;
}

.step-section.active,
.intro-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.progress-bar-container {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.step-indicator {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: var(--body-font);
}


.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-family: var(--body-font);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fff;
  font-family: var(--body-font);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}


.toggle-container {
  display: flex;
  align-items: center;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}


.action-section {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 12px 24px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  font-family: var(--heading-font);
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  color: #fff;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}


.gene-info-box,
.breed-info-box {
  background-color: #f8f8ff;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin: 20px 0;
  border-radius: var(--border-radius);
}

.breed-info-box ul li {
  margin-left: 20px;
  font-family: var(--body-font);
}

.gene-label {
  display: inline-block;
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.gene-label:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-family: var(--heading-font);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Results display */
.result-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: var(--heading-font);
}

.result-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.result-genotype {
  flex: 0 0 120px;
  font-weight: 500;
  font-family: var(--body-font);
}

.result-probability {
  flex: 1;
  display: flex;
  align-items: center;
}

.result-probability .progress-bar {
  flex: 1;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-right: 10px;
  overflow: hidden;
}

.result-probability .progress-bar-fill {
  height: 100%;
  background-color: var(--primary-light);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
  font-family: var(--body-font);
}

/* Info Icon Styles */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid var(--primary-color);
  font-family: var(--body-font);
}

.info-icon:hover {
  background-color: rgba(106, 90, 205, 0.1);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Popover Styles */
.popover-container {
  position: fixed;
  z-index: 1000;
  display: none;
  max-width: 300px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  padding: 15px;
  animation: fadeIn 0.2s ease-out;
  font-family: var(--body-font);
}

.popover-container.active {
  display: block;
}

.popover-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  font-family: var(--heading-font);
}

.popover-container p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.popover-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
}

/* Remove the old gene-info-box styles or keep them for other uses */
.gene-info-box {
  display: none; /* Hide the old info boxes */
}

/* Modify the form groups to accommodate the info icons */
.form-group {
  position: relative;
}

label {
  display: flex;
  align-items: center;
}

.section-paragraph {
  margin-bottom: 20px;
}

/* Navigation Styles */
.main-nav {
  margin-top: 15px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.main-nav li {
  display: inline-block;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: var(--heading-font);
}

.main-nav a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

/* Kitten Traits List */
.kitten-traits-list li {
  padding: 4px 0 4px 24px;
  position: relative;
  text-transform: capitalize;
  text-align: left;
  font-family: var(--body-font);
}

.kitten-traits-list li::before {
  content: '•';
  color: var(--primary-color);
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 2px;
}

.kitten-details {
  width: 100%;
  text-align: left;
}

.trait-section {
  background-color: #f9f9f9;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-light);
  text-align: left;
  margin-bottom: 16px;
  display: block;
}

.trait-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-family: var(--heading-font);
}

.breed-alert {
  background-color: #fff3cd;
  color: #856404;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 8px 0;
  border-left: 4px solid #ffeeba;
  font-size: 0.9rem;
  font-family: var(--body-font);
}

/* Health status */
.health-status {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.health-good {
  background-color: var(--success-color);
}

.health-concern {
  background-color: var(--warning-color);
}

.health-risk {
  background-color: var(--danger-color);
}

/* Cat color styles */
.cat-orange {
  color: #ff9966;
}

.cat-dark {
  color: #333;
}

.cat-cinnamon {
  color: #c47a53;
}

.cat-silver {
  color: #c0c0c0;
}

.cat-default {
  color: var(--primary-color);
}

/* Modal Styles */
.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: white;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 30px;
  position: relative;
  animation: slideIn 0.3s ease-out;
  font-family: var(--body-font);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--danger-color);
}

.kitten-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kitten-avatar {
  font-size: 80px;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.kitten-avatar .fa-cat {
  position: relative;
  z-index: 1;
  animation: kittenBounce 2s infinite ease-in-out;
}

.kitten-avatar::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: rgba(106, 90, 205, 0.1);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.kitten-details h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 700;
}

.kitten-details h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Kitten History */
.kitten-history-section {
  margin-top: 20px;
}

#toggle-history {
  width: 100%;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-family: var(--heading-font);
}

#toggle-history:hover {
  background-color: #e9ecef;
}

#toggle-history i {
  margin-right: 8px;
}

#kitten-history {
  margin-top: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  max-height: 200px;
  overflow-y: auto;
  font-family: var(--body-font);
}

#kitten-history h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  font-family: var(--heading-font);
}

.kitten-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.history-name {
  font-weight: 500;
  font-family: var(--body-font);
}

.btn-view-kitten {
  background-color: var(--primary-light);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s;
  font-family: var(--heading-font);
}

.btn-view-kitten:hover {
  background-color: var(--primary-color);
}

/* Genotype details */
.genotype-details {
  margin-top: 25px;
  text-align: center;
}

#genotype-list {
  margin-top: 15px;
  text-align: left;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: var(--border-radius);
  max-height: 300px;
  overflow-y: auto;
  font-family: var(--body-font);
}

#genotype-list h4 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-family: var(--heading-font);
}

#genotype-list ul {
  list-style-type: none;
  padding: 0;
}

#genotype-list li {
  margin-bottom: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-family: var(--body-font);
}

#genotype-list li:last-child {
  border-bottom: none;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

#generate-another-kitten {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  font-family: var(--heading-font);
}

#generate-another-kitten:hover {
  background-color: #ff6347;
  border-color: #ff6347;
}

#save-kitten {
  font-family: var(--heading-font);
}

#save-kitten::before {
  content: '\f0c7';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 8px;
}

/* Kitten Generator Button Styles */
#generate-kitten-btn {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--heading-font);
}

#generate-kitten-btn:hover {
  background-color: #ff6347;
  border-color: #ff6347;
}

/* Name input styles */
.kitten-name-container {
  margin: 15px 0;
}

.name-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.name-input-group input {
  flex: 1;
  font-family: var(--body-font);
}

#update-kitten-name {
  white-space: nowrap;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-family: var(--heading-font);
}

/* Animations */
@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Animation for cat icon */
@keyframes kittenBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* About Page Styles */
.about-section {
  margin: 30px 0;
}

.about-content {
  .about-content {
    flex-direction: column !important;
  }
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.about-image {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

.about-image img {
  max-width: 100%;
  border-radius: var(--border-radius);

}

.about-text h3 {
  color: var(--primary-dark);
  margin: 20px 0 10px;
  font-family: var(--heading-font);
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-family: var(--body-font);
}

.feature-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature h4 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-family: var(--heading-font);
}

.feature p {
  font-family: var(--body-font);
}

.cta-section {
  text-align: center;
  margin: 40px 0 20px;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-family: var(--body-font);
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-family: var(--heading-font);
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-image {
    flex: 0 0 40%;
  }

  .about-text {
    flex: 0 0 60%;
  }
}

@media (max-width: 768px) {
  .card {
    padding: 20px;
  }

  .action-section {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 0;
  }

  .result-genotype {
    flex: none;
    margin-bottom: 5px;
    font-weight: 600;
  }

  .result-probability {
    width: 100%;
  }

  .result-probability .progress-bar {
    margin-right: 8px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.9rem;
  }
  
  .feature-highlights {
    grid-template-columns: 1fr;
  }

  .about-image img {
    max-width: 80%;
  }
  
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .kitten-avatar {
    font-size: 60px;
  }
  
  .kitten-avatar::after {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 15px;
  }

  .result-probability {
    display: flex;
    align-items: center;
  }

  .result-probability span {
    min-width: 45px;
    text-align: right;
  }

  .progress-bar-container .progress-bar {
    height: 6px;
  }

  .step-indicator {
    font-size: 0.8rem;
  }
  
  .name-input-group {
    flex-direction: column;
    gap: 5px;
  }
  
  #update-kitten-name {
    width: 100%;
  }
}

/* Learning Page Styles - Add to your existing styles.css file */

.learning-section {
  margin: 30px 0;
}

.learning-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.learning-module {
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  padding: 5px 0 5px 15px;
  transition: all 0.3s ease;
}

.learning-module:hover {
  background-color: rgba(106, 90, 205, 0.05);
  transform: translateX(5px);
}

.learning-module h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-family: var(--heading-font);
  display: flex;
  align-items: center;
  gap: 10px;
}

.learning-module h3 i {
  color: var(--primary-color);
}

.module-content {
  padding-left: 30px;
}

.module-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-family: var(--body-font);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 90, 205, 0.2);
}

.btn-large i {
  font-size: 1.2rem;
}

.cta-section {
  text-align: center;
  margin: 40px 0 20px;
  padding: 20px;
  background-color: rgba(106, 90, 205, 0.05);
  border-radius: var(--border-radius);
}

/* Animation for learning modules */
.animated-element {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .learning-module {
    padding-left: 10px;
  }
  
  .module-content {
    padding-left: 15px;
  }
  
  .btn-large {
    width: 100%;
    padding: 12px 20px;
  }
}

.breed-health-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.breed-health-list .info-icon {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid var(--primary-color);
}

.breed-health-list .info-icon:hover {
  background-color: rgba(106, 90, 205, 0.1);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.breed-health-list {
  margin-left: 20px;
}

.breed-health-list li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.library-intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-dark);
}

.gene-category {
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.gene-category h3 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gene-category h3 i {
  color: var(--primary-color);
}

/* Accordion Styles */
.gene-accordion {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gene-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-color);
  color: var(--text-color);
  cursor: pointer;
  padding: 18px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: var(--transition);
  border-left: 4px solid var(--primary-light);
}

.gene-button:hover {
  background-color: rgba(106, 90, 205, 0.1);
}

.gene-button.active {
  background-color: rgba(106, 90, 205, 0.1);
  border-left: 4px solid var(--primary-color);
}

.gene-name {
  font-weight: 600;
}

.gene-button-icon i {
  transition: var(--transition);
  color: var(--primary-color);
}

.gene-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
}

.gene-content p {
  margin: 15px 0;
  line-height: 1.6;
}

.gene-alleles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.allele {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.dominant {
  background-color: #e0f7fa;
  color: #0097a7;
  border-left: 3px solid #0097a7;
}

.recessive {
  background-color: #fff8e1;
  color: #ffa000;
  border-left: 3px solid #ffa000;
}

.incomplete-dominant, .incomplete-recessive {
  background-color: #f3e5f5;
  color: #7b1fa2;
  border-left: 3px solid #7b1fa2;
}

.autosomal-dominant {
  background-color: #e8f5e9;
  color: #388e3c;
  border-left: 3px solid #388e3c;
}

.autosomal-recessive {
  background-color: #ffebee;
  color: #c62828;
  border-left: 3px solid #c62828;
}

.x-linked {
  background-color: #e8eaf6;
  color: #3949ab;
  border-left: 3px solid #3949ab;
}

.gene-outcomes {
  list-style-type: none;
  padding-left: 0;
  margin: 15px 0;
}

.gene-outcomes li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.gene-outcomes li:last-child {
  border-bottom: none;
}

.gene-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.gene-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.gene-content ul li {
  margin-bottom: 8px;
}

.back-to-genetics {
  text-align: center;
  margin: 30px 0 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gene-alleles {
    flex-direction: column;
    gap: 5px;
  }
  
  .gene-button {
    padding: 15px;
  }
}

/* Responsive Navigation Improvements */
@media (max-width: 768px) {
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  .main-nav li {
    width: calc(50% - 10px); /* Two tabs per row on smaller screens */
    margin-bottom: 10px;
  }
  
  .main-nav a {
    display: block;
    text-align: center;
    padding: 10px 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  .main-nav li {
    width: 100%; /* Full width on very small screens */
  }
  
  .main-nav a {
    font-size: 0.95rem;
    padding: 12px 5px;
  }
  
  /* Smaller header for mobile */
  header h1 {
    font-size: 1.8rem;
  }
  
  header p {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tab-btn {
    padding: 12px 15px;
    text-align: center;
    margin-bottom: -1px; /* Fix border overlap issues */
    flex: 1 1 auto;
    min-width: 120px;
  }
  
  .tab-btn.active {
    background-color: rgba(106, 90, 205, 0.1);
  }
}
@media (max-width: 480px) {
  .tabs {
    flex-direction: column;
    border-bottom: none;
  }
  
  .tab-btn {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 5px;
  }
  
  .tab-btn.active {
    border-color: var(--primary-color);
  }
  
  .tab-btn.active::after {
    display: none; /* Remove the bottom border indicator */
  }
  
  /* Adjust spacing in result sections */
  .result-item {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .result-row {
    padding: 8px 0;
  }
}
/* Add these styles to your styles.css file for better dropdown styling */

/* Enhanced select dropdown styles */
select.form-control {
  font-family: var(--body-font);
  color: var(--text-color);
}

/* Style for option groups */
select.form-control option {
  padding: 8px 10px;
  line-height: 1.4;
}

/* Improve readability of dropdowns on mobile */
@media (max-width: 768px) {
  select.form-control {
    font-size: 0.95rem;
    padding: 12px 40px 12px 12px; /* Increased right padding for the dropdown arrow */
    background-position: right 12px center; /* Position the dropdown arrow */
  }
  
  /* Adjust the appearance of options in the dropdown */
  select.form-control option {
    padding: 10px;
  }
}

/* Make long option text wrap better in modals for better mobile experience */
.modal-content select.form-control {
  word-break: normal;
  white-space: normal;
  height: auto;
}