/* =============================
   RUNNING DASHBOARD – PASTEL ELITE
============================= */

/* =============================
   COLORS / VARIABLES
============================= */
:root {
    --bg-main: #f6f8fb;
    --card-bg: #ffffff;
    --pastel-blue: #cfe8ff;
    --pastel-green: #dff7e6;
    --pastel-purple: #efe3ff;
    --pastel-pink: #ffe3ec;
    --pastel-yellow: #fff6d6;

    --chart-blue: rgba(100,149,237,0.7);
    --chart-green: rgba(102,205,170,0.7);
    --chart-purple: rgba(186,140,255,0.7);
    --chart-pink: rgba(255,140,180,0.7);

    --border-soft: #e3e8ef;
    --text-dark: #2c3e50;
}

/* =============================
   GLOBAL BODY & HEADINGS
============================= */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    margin: 0;
    padding: 40px;
    padding-top: 90px;
    color: var(--text-dark);
}

h1 { margin-bottom: 30px; }
h2 { margin-top: 0; margin-bottom:15px; }
h3 { margin-top: 20px; margin-bottom:10px; }

/* =============================
   NAVIGATION
============================= */
nav {
    margin-bottom: 25px;
}
nav a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-dark);
}

/* =============================
   CARDS
============================= */
.card {
    background: var(--card-bg);
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-bottom: 35px;
}

/* =============================
   TABLES INSIDE CARDS
============================= */
.card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* Table headers */
.card th {
    padding: 12px;
    background: var(--pastel-purple);
    font-weight: 600;
    text-align: left; /* headers left-aligned */
    border-bottom: 2px solid var(--border-soft);
}

/* Table cells */
.card td {
    padding: 12px;
    border-bottom: 1px solid var(--border-soft);
}

/* First column left, numeric columns right */
.card td:first-child, .card th:first-child {
    text-align: left;
}
.card td:not(:first-child), .card th:not(:first-child) {
    text-align: right;
}

/* Vertical column separators */
.card th:not(:last-child),
.card td:not(:last-child) {
    border-right: 1px solid var(--border-soft);
}

/* Alternating row background */
.card tr:nth-child(even) {
    background: #fcfdff;
}

/* Hover effect */
.card tr:hover {
    background: #f4f7ff;
}

/* =============================
   INPUTS & BUTTONS
============================= */
input, select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}

button, .admin-btn, a {
    border-radius: 6px;
    padding: 6px 14px;
    text-decoration: none;
    cursor: pointer;
}

button, .admin-btn {
    background: var(--pastel-purple);
    color: #333;
    border: none;
    font-weight: 600;
}

button:hover, .admin-btn:hover {
    opacity: 0.85;
}

/* =============================
   CHARTS
============================= */
canvas {
    margin-top: 20px;
}

/* =============================
   BADGES
============================= */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f0f4ff;
    margin: 2px;
    font-size: 13px;
}

/* =============================
   PROGRESS BARS
============================= */
.progress-wrapper {
    margin-top: 6px;
}

.progress-bar {
    height: 8px;
    background: #e8ecff;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #b8c6ff, #8fa8ff);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* =============================
   SPECIFIC TABLE STYLING
============================= */
.leaderboard-table th { background: var(--pastel-purple); }
.pb-table th { background: var(--pastel-green); }
.section-weekly th { background: var(--pastel-purple); color: #333; font-weight:600; text-align:left; }

/* =========================
   GLASS NAVIGATION BAR
========================= */

.top-nav-glass{
    position:fixed;
    top:15px;
    left:0;
    width:100%;

    display:flex;
    justify-content:flex-end;   /* pushes buttons to the RIGHT */
    gap:10px;
    padding:10px 20px;

    background:rgba(255,255,255,0.55);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    border-bottom:1px solid rgba(255,255,255,0.6);
    box-shadow:0 6px 14px rgba(0,0,0,0.12);

    z-index:999;
    flex-wrap:wrap;
}

/* highlight current user */

.current-user{
    box-shadow:0 0 10px rgba(140,110,255,0.6);
    border:1px solid rgba(140,110,255,0.6);
}

/* container that holds the buttons */
.user-buttons{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    width:100%;
    flex-wrap:wrap;
}