/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* PAGE BACKGROUND */
body {
    background-color: #0b0f14;
    color: #A9A9A9;
    min-height: 100vh;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: #070a0f;
    border-bottom: 1px solid #1f2937;
}

/* HEADER LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 50px;
    width: auto;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #caa44d;
}

/* NAV */
.header-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #9aa4b2;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: #00e6ff;
}

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

/* WELCOME */
.welcome {
    font-size: 22px;
    margin-bottom: 25px;
}

/* GRID */
.grid {
    display: grid;
    align-content: center;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.full-width-box {
    width: 100vw;          /* full viewport width */
    max-width: 100vw;      /* prevent any accidental max limits */
    margin: 0;             /* remove automatic centering margins */
    padding: 20px;         /* optional inner spacing */
    box-sizing: border-box;/* include padding in width */
    display: grid;         /* optional: if you want a grid layout inside */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    background-color: #f5f5f5; /* optional visual styling */
}


/* CARDS */
.card {
    background: #111827;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #00e6ff;
}

.card.green {
    background: rgba(76, 255, 154, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.card.green h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4cff9a;
}

/*.card.red {
    background: rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}*/

.card.red h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ff0000;
}

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

/* BUTTONS */
button,
.card a {
    display: inline-block;
    padding: 10px 14px;
    background: #00e6ff;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

button:hover,
.card a:hover {
    opacity: 0.9;
}

/* FORMS */
.form-group {
    margin-bottom: 12px;
}

select {
    width: 100%;
    padding: 8px;
    background: #020617;
    color: #fff;
    border: 1px solid #1f2937;
    border-radius: 6px;
}

/* FOOTER */
.footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

/* CHART TABLES */
.chart-table {
    width: 100%;
    border-collapse: collapse;
}

.chart-table th,
.chart-table td {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
}

.chart-table th {
    text-align: left;
    color: #caa44d;
    font-weight: 600;
}

.pos {
    font-weight: 700;
}

/* MOVEMENT COLORS */
.up {
    color: #22c55e;
    font-weight: bold;
}

.down {
    color: #ef4444;
    font-weight: bold;
}

.same {
    color: #9ca3af;
}

.new {
    color: #facc15;
    font-weight: bold;
}

.month-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.month-nav a {
    color: #22d3ee;
    font-weight: bold;
    text-decoration: none;
}

.up { color: #22c55e; font-weight: bold; }
.down { color: #ef4444; font-weight: bold; }
.same { color: #9ca3af; }
.new { color: #facc15; font-weight: bold; }

.btn-secondary {
    background: #1f2933;
    padding: 8px 12px;
    border-radius: 6px;
    color: #facc15;
    text-decoration: none;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.status-badge.generated {
    background: #14532d;
    color: #bbf7d0;
}

.status-badge.locked {
    background: #7c2d12;
    color: #fde68a;
}

.highlight {
    background: #7c2d12;
    font-weight: bold;
}

.btn-small {
    padding: 6px 10px;
    background: #334155;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
}
.btn-small:hover {
    background: #475569;
}

.card.cyan {
    border-top: 0.1px solid #22d3ee;
    border-left: 0.1px solid #22d3ee;
    border-right: 0.1px solid #22d3ee;
    border-bottom: 0.1px solid #22d3ee;
}

.card.green {
    border-top: 0.1px solid #4cff9a;
    border-left: 0.1px solid #4cff9a;
    border-right: 0.1px solid #4cff9a;
    border-bottom: 0.1px solid #4cff9a;
}

.card.red {
    border-top: 0.1px solid #ff0000;
    border-left: 0.1px solid #ff0000;
    border-right: 0.1px solid #ff0000;
    border-bottom: 0.1px solid #ff0000;
}

.value.online {
    color: #22c55e;
    font-weight: bold;
}

.value.offline {
    color: #ef4444;
    font-weight: bold;
}

.card.green h3 {
    color: #4cff9a;
}

.card.purple h3 {
    color: #b388ff;
}

.mini-list {
    margin: 6px 0 0;
    padding-left: 16px;
    font-size: 13px;
}

.mini-list li {
    margin-bottom: 4px;
}

.card.gold {
    border: 1px solid rgba(255, 215, 0, 0.25);
    background: linear-gradient(180deg, #1a1a12, #0f0f0f);
}

.card.gold h3 {
    color: #ffd700;
}

.card.gold.artist {
    border-color: rgba(0, 200, 255, 0.35);
}

.card.gold.artist h3 {
    color: #38bdf8;
}

/* ==========================
   LOGIN PAGE LAYOUT
========================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    background: radial-gradient(circle at top, #0f172a, #020617);
}

/* LOGO */
.login-logo img {
    max-width: 280px;   /* ðŸ”¥ THIS fixes your issue */
    width: 100%;
    height: auto;
    opacity: 0.95;
}

/* LOGIN BOX */
.login-box {
    background: #020617;
    border-radius: 14px;
    padding: 32px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 0 0 1px rgba(56,189,248,.15),
                0 20px 60px rgba(0,0,0,.6);
}

.login-box h2 {
    margin-bottom: 20px;
    color: #38bdf8;
    text-align: center;
}

@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
        gap: 30px;
    }

    .login-logo img {
        max-width: 200px;
    }
}


.admin-card {
    background: #0f1419;
    border: 1px solid #1e2a33;
    border-radius: 8px;
    padding: 20px;
    max-width: 900px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: #7aa2c4;
    border-bottom: 1px solid #1e2a33;
    padding: 10px;
}

.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #1e2a33;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.badge-admin { background:#5b2d8b; }
.badge-manager { background:#1f6f8b; }
.badge-viewer { background:#444; }

.badge-active { background:#1f8b4c; }
.badge-disabled { background:#8b1f1f; }

.action-link {
    color: #c792ea;
    margin-right: 8px;
}

.user-role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
    text-transform: uppercase;
}

.user-role-badge.admin {
    background: #b91c1c;
    color: #fff;
}

.user-role-badge.manager {
    background: #1d4ed8;
    color: #fff;
}

.user-role-badge.viewer {
    background: #374151;
    color: #fff;
}

.card.healthy { border-left: 5px solid #28a745; }
.card.warning { border-left: 5px solid #ffc107; }
.card.critical { border-left: 5px solid #dc3545; }

.health-status {
    font-weight: bold;
    margin-bottom: 6px;
}

.chart-actions {
    text-align: right;
    margin-bottom: 10px;
}

.btn-export {
    background: #2c7be5;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-export:hover {
    background: #1a68d1;
}

.card.red {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0.9;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
}

.chart-table th,
.chart-table td {
    text-align: center !important;
    vertical-align: middle;
}


/* ==========================
   RE-ENTRY BADGES + TOOLTIP
========================== */

.sogr-reentry {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-radius: 999px;
  color: #1f1300;
  background: linear-gradient(135deg, #ffb020, #ff8a00);
  box-shadow:
    0 0 0 1px rgba(255,138,0,.35),
    0 0 12px rgba(255,138,0,.30);
  white-space: nowrap;
}

/* Top-10 re-entry = different color */
.sogr-reentry.top10 {
  color: #071a14;
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow:
    0 0 0 1px rgba(16,185,129,.35),
    0 0 12px rgba(16,185,129,.30);
}

/* “3w” mini text */
.sogr-reentry .since {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.9;
}

/* Tooltip via data-tip */
.sogr-reentry[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  width: max-content;
  max-width: 280px;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  z-index: 50;
}

/* Tooltip arrow */
.sogr-reentry[data-tip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,.85);
  opacity: 0;
  transition: opacity .14s ease;
  z-index: 50;
}

.sogr-reentry:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.sogr-reentry:hover::before {
  opacity: 1;
}

.reentry-empty {
  color: #6b7280;
  font-size: 12px;
}


/* ==========================
   Weekly Summary – Text Fix
========================== */

.weekly-summary-grid{
  color: #0f172a; /* dark slate */
}

.weekly-summary-box{
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.weekly-summary-box h4{
  color: #0f172a;
}

.weekly-summary-box strong{
  color: #020617;
}

.weekly-summary-list li{
  color: #1e293b;
}

.weekly-summary-box .muted{
  color: #64748b;
}


.header-nav {
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-dropdown {
  position:relative;
}

.nav-link {
  cursor:pointer;
  font-weight:600;
}

.dropdown-menu {
  position:absolute;
  top:100%;
  left:0;
  min-width:200px;
  background:#fff;
  border:1px solid rgba(17,24,39,.12);
  border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  display:none;
  z-index:999;
}

.dropdown-menu a {
  display:block;
  padding:10px 14px;
  color:#0f172a;
  text-decoration:none;
  font-weight:600;
}

.dropdown-menu a:hover {
  background:#f1f5f9;
}

.nav-dropdown:hover .dropdown-menu {
  display:block;
}
