:root {
  color-scheme: dark;

  --bg-outer: #0b0d0f;
  --bg-main: #121419;
  --bg-card: #1b1c24;

  --border-main: #1c1f26;
  --border-card: #2a2d36;

  --text-primary: #ffffff;
  --text-secondary: #a7adb8;
  --text-header: #b7bdc8;

  --accent-red: #db304b;
  --accent-green: #2ebd4d;

  --badge-bg: #171a20;
  --badge-border: #6b707a;
}

body.light {
  color-scheme: light;

  --bg-outer: #eef1f6;
  --bg-main: #f8f9fc;
  --bg-card: #ffffff;

  --border-main: #d9dee8;
  --border-card: #d1d7e3;

  --text-primary: #171a20;
  --text-secondary: #5f6673;
  --text-header: #303644;

  --accent-red: #db304b;

  --badge-bg: #ffffff;
  --badge-border: #8b93a3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg-outer);
  font-family: Arial, Helvetica, sans-serif;
  padding: 32px;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  z-index: 10;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--accent-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dashboard-layout {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}

.left-column {
  width: 65%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.panel {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-main);
  border-radius: 28px;
  padding: 34px 40px;
  overflow: hidden;
}

.panel-side {
  width: calc(35% - 22px);
  min-height: calc(100vh - 64px);
  background: var(--bg-main);
  border: 1px solid var(--border-main);
  border-radius: 28px;
  padding: 34px 40px;
  overflow: hidden;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.date-row h1 {
  color: var(--text-header);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}

.badge {
  color: var(--text-primary);
  background: var(--badge-bg);
  border: 2px solid var(--badge-border);
  border-radius: 11px;
  padding: 6px 18px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rank-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 30px 54px;
  min-height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-red);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.rank-card:active {
  transform: translateY(-2px);
}

.rank-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 38px;
  width: 10px;
  height: 66px;
  background: var(--accent-red);
  border-radius: 0 10px 10px 0;

  transition:
    top 0.25s ease,
    height 0.25s ease;
}

.rank-card:hover::before {
  top: 30px;
  height: 82px;
}

.meta {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.15;
}

.title {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.highlight{
  color:var(--accent-red);
}

.preview-btn , .status-btn, .diag-btn {
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: 14px;
  padding: 12px 18px;
  width: fit-content;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.button-row {
  display: flex;
  gap: 20px;
}

.preview-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0.9;
}

.status-btn{
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.diag-btn{
  background: var(--badge-border);
  border-color: var(--badge-border);
}

.rank-card-info-box{
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 30px 54px;
  min-height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;
  text-decoration: none;
  color: inherit;
  
}

p.meta {
  padding-top:10px;
}

@media (max-width: 720px) {
  body {
    padding: 20px;
  }

  .theme-toggle {
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .dashboard-layout {
    flex-direction: column;
  }

  .left-column,
  .panel-side {
    width: 100%;
  }

  .panel,
  .panel-side {
    padding: 30px 26px;
  }

  .date-row {
    margin-bottom: 32px;
  }

  .date-row h1 {
    font-size: 28px;
  }

  .rank-card {
    padding: 28px 42px;
    min-height: 130px;
  }

  .meta {
    font-size: 17px;
  }

  .title {
    font-size: 25px;
  }
}