/* ============================================================
   REAL TREE GUY OS — DASHBOARD (FULL REBUILD)
   Clean • Cinematic • Balanced • No Overflow
============================================================ */

/* ============================================================
   BASE / BACKGROUND
============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  color: #fff;
  overflow-x: hidden;
  background: #061b06;
}

#rtgBackground {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1f5f2b 0, #061b06 55%, #020a02 100%);
  background-attachment: fixed;
  z-index: -1;
}

/* ============================================================
   TOP BAR
============================================================ */
.rtg-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(0,0,0,0.9);
  border-bottom: 2px solid #2e6b33;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 1000;
}

.rtg-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rtg-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #2e6b33;
}

/* ============================================================
   MAIN LAYOUT
============================================================ */
.rtg-main {
  padding: 96px 16px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   QUICK ACTIONS
============================================================ */
.rtg-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.rtg-qa-btn {
  flex: 1 1 160px;
  padding: 14px 0;
  border-radius: 12px;
  border: 2px solid #ff8c42;
  background: rgba(0,0,0,0.7);
  color: #ffcc99;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
}

.rtg-qa-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* ============================================================
   GAUGE ROW
============================================================ */
.rtg-gauge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.rtg-gauge-card {
  background: rgba(0,0,0,0.75);
  border-radius: 12px;
  border: 2px solid #2e6b33;
  padding: 16px;
  box-shadow: 0 0 16px rgba(0,0,0,0.6);
}

/* ============================================================
   WIDGETS + CARDS
============================================================ */
.rtg-widget {
  margin: 0 auto 24px;
  padding: 18px;
  background: rgba(0,0,0,0.7);
  border: 2px solid #2e6b33;
  border-radius: 12px;
}

.rtg-dashboard-card {
  background: rgba(0,0,0,0.85);
  border-radius: 10px;
  border: 1px solid #2e6b33;
  padding: 12px 14px;
  margin-top: 12px;
}

/* ============================================================
   GRID — FIXED SIZING + PERFECT XL TILE
============================================================ */
.rtg-grid {
  margin: 24px auto 20px;
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

/* Standard Card */
.rtg-card {
  background: rgba(0,0,0,0.75);
  border: 2px solid #ff8c42;
  border-radius: 12px;
  padding: 22px 10px;
  text-decoration: none;
  color: #fff;
  font-size: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  transition: 0.2s ease;
}

.rtg-card span {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffcc99;
}

.rtg-card:hover {
  background: rgba(0,0,0,0.9);
  transform: translateY(-4px);
}

/* XL CARD — FIXED, PERFECT 2×2 TILE */
.rtg-card--xl {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtg-card--rtgonline {
  background: rgba(0,0,0,0.85);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #ff8c42;
}

.rtg-online-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   MOBILE FIXES
============================================================ */
@media (max-width: 768px) {

  .rtg-logo {
    width: 42px;
    height: 42px;
  }

  .rtg-card {
    font-size: 1.6rem;
    min-height: 120px;
  }

  .rtg-card--xl {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 140px;
  }
}
