:root {
  --primary: #fb8500;
  --primary-dark: #219ebc;
  --secondary: #ffb703;
  --dark: #023047;
  --light: #f8f9fa;
  --transition: all 0.3s ease;
  --success: #00d084;
  --warning: #ff9900;
  --danger: #ff4757;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
  background: linear-gradient(135deg, #023047, #074b6e);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  margin-bottom: 14rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  background-color: #0230479a;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover:after {
  width: 100%;
}

.items {
  display: flex;
  gap: 18rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.menu-bar {
  width: 100%;
  margin: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Animation for Active State */
.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.menu-toggle {
  display: none;
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 65, 232, 0.4);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5rem;
  margin-bottom: 30px;
}

.page-title h2 {
  font-size: 24px;
  font-weight: 600;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 5px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-btn {
  background-color: #194d68;
  border: none;
  color: var(--text);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
}

.search-box {
  background-color: #194d68;
  border-radius: 6px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text);
  margin-left: 5px;
  outline: none;
  width: 200px;
}

.search-box input::placeholder {
  color: var(--text-secondary);
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.influencer-card {
  background-color: #194d68;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}

.influencer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-cover {
  height: 100px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  position: relative;
}

.influencer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 4px solid var(--secondary);
  position: absolute;
  bottom: -40px;
  left: 20px;
  overflow: hidden;
}

.influencer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 600;
}

.card-content {
  padding: 50px 20px 20px;
}

.influencer-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.influencer-category {
  color: var(--secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

.stat-label {
  color: var(--secondary);
  font-size: 12px;
}

.progress-container {
  margin-bottom: 15px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.progress-label span:last-child {
  color: var(--primary-dark);
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  width: 0;
  transition: width 1s ease-in-out;
}

.card-actions {
  display: flex;
  justify-content: space-between;
}

.btn {
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.active {
  border-bottom: 2px solid #ffb703;
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--text);
}

.btn-text {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-text:hover {
  color: var(--text);
}

.ranking-list {
  background-color: var(--secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
}

.list-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px 120px 120px 120px 80px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  color: var(--text-secondary);
}

.influencer-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 120px 120px 120px 80px;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.influencer-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.influencer-row:nth-child(2) {
  animation-delay: 0.1s;
}

.influencer-row:nth-child(3) {
  animation-delay: 0.2s;
}

.influencer-row:nth-child(4) {
  animation-delay: 0.3s;
}

.influencer-row:nth-child(5) {
  animation-delay: 0.4s;
}

.influencer-row:nth-child(6) {
  animation-delay: 0.5s;
}

.rank {
  font-weight: 600;
  font-size: 18px;
}

.top-rank {
  color: var(--accent);
}

.influencer-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.small-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.small-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.influencer-info h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 3px;
}

.influencer-info p {
  color: var(--secondary);
  font-size: 13px;
}

.metric {
  font-weight: 500;
}

.trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.trend.up {
  color: var(--success);
}

.trend.down {
  color: var(--danger);
}

.action-btn {
  background-color: transparent;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.3s;
}

.action-btn:hover {
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.tab {
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 5px;
  position: relative;
  transition: color 0.3s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.chart-container {
  background-color: var(--secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  height: 400px;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  animation-delay: 0.3s;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
}

.chart-actions {
  display: flex;
  gap: 10px;
}

.chart-wrapper {
  height: 320px;
  position: relative;
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--secondary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.metric-card:nth-child(1) {
  animation-delay: 0.1s;
}

.metric-card:nth-child(2) {
  animation-delay: 0.2s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.3s;
}

.metric-card:nth-child(4) {
  animation-delay: 0.4s;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0;
  background: linear-gradient(to right, var(--accent), #00d084);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 5px;
}

.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
}

.metric-trend.up {
  color: var(--success);
  background-color: rgba(0, 208, 132, 0.1);
}

.metric-trend.down {
  color: var(--danger);
  background-color: rgba(255, 71, 87, 0.1);
}
footer {
  background-color: #0021313e;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 240px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 3rem;
  }

  .items {
    display: none;
  }
  .items.show {
    display: flex;
    width: 100%;
    backdrop-filter: blur(8px);
    background-color: #0230479a;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    gap: 1rem;
    height: 280px;
    padding-top: 2rem;
  }
  .items .btn {
    margin: 0 auto;
    width: auto;
  }

  .menu-toggle {
    display: block;
  }
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .list-header,
  .influencer-row {
    grid-template-columns: 50px 1fr 80px 80px;
  }

  .list-header div:nth-child(4),
  .list-header div:nth-child(5),
  .influencer-row div:nth-child(4),
  .influencer-row div:nth-child(5) {
    display: none;
  }

  .ranking-grid {
    grid-template-columns: 1fr;
  }

  nav ul li {
    margin-left: 15px;
  }

  .metric-cards {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}
@media (max-width: 441px) {
  .filters {
    flex-direction: column;
    gap: 15px;
  }
}
