.cairo {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  font-size: 11px;
}

body {
  min-height: 100svh;
}

/* Navbar Styles */
.navbar {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  gap: var(--spacing-md);
}

.logo {
  width: 30px;
  height: 30px;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

h1,
h4,
p {
  text-align: center;
}

.title {
  cursor: pointer;
  transition: transform .3s ease-in-out;
}

.title:hover{
  transform: scale(1.08);
  text-shadow: 0px  0px 8px rgba(255,255,255,0.6);
}

main {
  margin-inline: auto;
  flex-grow: 1;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.chart-border {
  width: 100px;
  height: 350px;
  border: 4px solid var(--color-border);
  border-radius: 80px;
}

.chart-container {
  width: 80px;
  height: 330px;
  border-radius: 60px;
  overflow: hidden;
}

.bar {
  width: 100%;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: height 0.3s ease-out;
  height: 0px;
}

#no-data-bar {
  height: 100%;
  font-size: 0.8rem;
}

aside {
  gap: var(--spacing-lg);
}

.info {
  gap: var(--spacing-md);
}

.legend {
  width: 30px;
  height: 30px;
}

.info div {
  gap: var(--spacing-md);
}

.student-count {
  padding: 12px 18px;
  margin-top: var(--spacing-lg);
  gap: var(--spacing-md);
}

.interaction-container {
  width: 100%;
}

section {
  margin: var(--spacing-md) auto;
  width: 100%;
  gap: var(--spacing-2xl);
}

.interact {
  cursor: pointer;
  border: 1px solid transparent;
  padding: var(--spacing-md) var(--spacing-md);
}

.interact:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.interact:hover {
  svg {
    transform: scale(1.15);
    transition: transform 0.3s ease;
  }
}
.interact.green:hover {
  background-color: var(--color-success-dark);
}

.interact.yellow:hover {
  background-color: var(--color-warning-dark);
}
.interact.red:hover {
  background-color: var(--color-error-dark);
}

.button-container {
  gap: var(--spacing-sm);
}

.footer {
  width: 100%;
  border-top: 2px solid var(--color-border);
  padding: var(--spacing-md) var(--spacing-sm);
}

.footer-content {
  font-size: 0.9rem;
  flex-grow: 1;
  justify-content: space-between;
  display: flex;
  gap: var(--spacing-sm);
}
.footer-content p {
  text-align: right;
}

.footer-links {
  min-width: 110px;
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link span {
  display: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-link svg {
  fill: currentColor;
  width: 20px;
  height: 20px;
}

@media (min-width: 570px) {
  html {
    font-size: 14px;
  }

  main {
    gap: 80px;
  }

  .chart-border {
    width: 120px;
    height: 400px;
  }

  .chart-container {
    width: 100px;
    height: 380px;
  }

  h1 {
    font-size: 2rem;
  }
}
@media (min-width: 780px) {
  html {
    font-size: 16px;
  }

  main {
    gap: 100px;
  }

  .chart-border {
    width: 140px;
    height: 450px;
  }
  .chart-container {
    width: 120px;
    height: 430px;
  }

  section {
    gap: 100px;
  }
  .footer-links {
    min-width: 350px;
  }
  .footer-link span {
    display: inline;
  }

  .footer-content {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .navbar {
    padding: var(--spacing-sm) var(--spacing-xl);
  }
}

@media (min-width: 980px) {
  h1 {
    font-size: 2.5rem;
  }
}
