/* Shared Variant Element Styles */
/* Used by both desktop and mobile versions */

/* Genotype Alleles */
.genotype {
  display: flex;
  gap: 0.25rem;
}

.genotype-allele {
  min-width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  border-radius: 0.25rem;
}

.genotype-allele.ref {
  background-color: #6B7280;
}

.genotype-allele.alt {
  background-color: #F59E0B;
}

.gi-genotype {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 24px;
    padding: 0 4px;
    margin: 0 2px 1px 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 74px;
}

.gi-genotype.mob {
    margin: 0 0px 0px 4px;
}

.gi-genotype-inherited {
    font-size: 11px;
    width: 16px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #848484;
    color: white;
    border-radius: 100%;
}

.gi-genotype.bg-dark,
.variant-allele-depth-genotype.bg-dark {
    background-color: #686868 !important;
}

.gi-genotype.bg-danger {
    background-color: #f89f9f !important;
}

.gi-genotype.bg-warning,
.variant-allele-depth-genotype.bg-warning {
    background-color: #f5de96 !important;
}

.gi-genotype-truncated {
    font-size: 60%;
}

/* MAF (Minor Allele Frequency) */
/* .maf {
  font-size: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  font-weight: 500;
  display: inline-block;
  width: auto;
  flex-shrink: 0;
  flex-grow: 0;
}

.maf.common {
  background-color: #E5E7EB;
  color: #4B5563;
}

.maf.uncommon {
  background-color: #FEF3C7;
  color: #92400E;
}

.maf.rare {
  background-color: #FEE2E2;
  color: #B91C1C;
} */

/* Allele Frequency */
.gi-variant-af {
    font-size: 72%;
    padding: 2px;
    padding: 0.15rem 0.1rem;
    border-radius: 2px;
    color: gray;
    min-width: 66px;
    display: block;
    text-align: center;
}

.gi-variant-af.mob {
    font-size: 75%;
}

.gi-variant-af.mob .gi-variant-af-value {
  /* font-size: 85%; */
  padding: 4px 6px;
  border-radius: 4px;
}

.gi-variant-af__rare {
    background-color: #ffb9b9;
    color: #434343;
    font-weight: bold;
    text-align: center;
    /* min-width: 50px; */
}

#gi-recomposed-variants .gi-variant-af__rare {
    background-color: #9c9c9c;
    color: #403f3e;
    font-weight: normal;
}

.gi-variant-af__uncommon {
    color: #0a0a0a;
    font-weight: bold;
    background-color: #ffe69b;
}

.gi-variant-af__uncommon.mob {
  font-weight: normal;
}

.gi-variant-af__common {
    color: #232323;
}

.gi-variant-af.mob .gi-variant-af__common {
  color: #3a780b;
}



/* Effect Tags */
.effect {
  font-size: 0.85rem;
  color: #4B5563;
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.effect-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.effect-tag.missense {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.effect-tag.intron {
  background-color: #E0E7FF;
  color: #4338CA;
}

.effect-tag.binding-site {
  background-color: #D1FAE5;
  color: #065F46;
}

.effect-tag.splice {
  background-color: #FCE7F3;
  color: #9D174D;
}

.effect-tag.frameshift {
  background-color: #FEF3C7;
  color: #92400E;
}

.effect-tag.nonsense {
  background-color: #FEE2E2;
  color: #B91C1C;
}

.rsid-link {
    font-size: 12px;
    padding: 0 2px;
    display: inline-block;
    color: black;
    text-decoration: none;  
}

.rsid-link.mob {
    font-size:0.9rem;
}

.font100 .rsid-link {
    font-size: 100%;
}

.gi-unknown-rsid {
    color: #ec5936;
    font-size: 12px;
}

.gi-unknown-rsid.mob {
    font-size:0.9rem;
}

/* rsID Links
.rsid-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1F2937;
  text-decoration: underline;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsid-header.unknown {
  color: #9CA3AF;
  text-decoration: none;
}

.rsid {
  font-size: 0.85rem;
  color: #1F2937;
  text-decoration: underline;
  font-weight: 500;
}

.rsid.unknown {
  color: #9CA3AF;
  text-decoration: none;
} */

/* MAF Container for proper sizing */
.maf-container {
  display: inline-block;
  width: auto;
}
