:root {
  --primary-color: #065fd4;
  --secondary-color: #606060;
  --dark-color: #212121;
  --light-color: #f9f9f9;
  --border-color-d: #e5e5e5;
  --danger-color: #cc0000;
  --success-color: #00a600;

  /* --card-bgc: #171717; */
  --card-bgc: #eeeeee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* dashboard_secation */

.dashboard_secation {
  display: none;
  flex-direction: column;
  width: 100%;
}

.dashboard_secation > nav {
  display: flex;
  flex: 1;
  gap: 10px;
  margin-left: 2.5rem;
  margin-top: 0.7rem;
}

.dashboard_secation > nav > button {
  padding: 5px;
  min-width: 80px;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: inherit;
  cursor: pointer;
  &:hover {
    background-color: var(--card-bgc);
  }
}

/* Main Content Styles */
.main-content {
  width: calc(100%);
  padding: 5px 40px 20px 40px;
  background-color: inherit;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 500;
}

.date-range {
  display: flex;
  align-items: center;
  background-color: var(--card-bgc);
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.date-range i {
  margin-right: 8px;
  /* color: var(--secondary-color); */
  color: inherit;
  opacity: 0.8;
}

.date-range span {
  font-size: 0.875rem;
  /* color: var(--dark-color); */
  color: inherit;
  opacity: 0.8;
}

/* Metrics Overview */
.metrics-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card {
  /* background-color: white; */
  background-color: var(--card-bgc);
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.metric-card h3 {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.metric-change {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
}

.metric-change.positive {
  color: var(--success-color);
}

.metric-change.negative {
  color: var(--danger-color);
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-card {
  /* background-color: white; */
  background-color: var(--card-bgc);

  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chart-card h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.chart-container {
  height: 300px;
  position: relative;
}

/* Videos Table */
.videos-table {
  /* background-color: white; */
  background-color: var(--card-bgc);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.videos-table h2 {
  font-size: 1rem;
  font-weight: 500;
  /* margin-bottom: 20px; */
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

th {
  text-align: left;
  padding: 12px;
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

td {
  padding: 12px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

tr:last-child td {
  border-bottom: none;
}

.video-info {
  display: flex;
  align-items: center;
}

.video-thumbnail {
  width: 120px;
  height: 68px;
  background-color: #eee;
  margin-right: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.video-meta {
  font-size: 0.75rem;
  color: var(--secondary-color);
}

.positive-change {
  color: var(--success-color);
}

.negative-change {
  color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .metrics-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-content {
    width: calc(100%);
    padding: 1rem;
  }

  .dashboard_secation {
    width: 90%;
  }

  .metrics-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-container {
    height: 200px;
  }
  .metric-card {
    padding: 1rem;
  }
}
@media (max-width: 590px) {
  .dashboard_secation {
    width: 100%;
  }
  .metric-card {
    padding: 0.85rem;
  }
}
