/* GPS Communications MLM - Custom Styling */
:root {
    --primary-green: #1b5e20;
    --dark-green: #0d3b11;
    --accent-gold: #d4af37;
    --light-gold: #fff8e1;
    --active-green: #2e7d32;
    --inactive-red: #c62828;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* Header & Navbar */
.navbar-gps {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    border-bottom: 3px solid var(--accent-gold);
}

.navbar-gps .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.navbar-gps .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.2s;
}

.navbar-gps .nav-link:hover, .navbar-gps .nav-link.active {
    color: var(--accent-gold);
}

/* Status Badges */
.badge-active {
    background-color: var(--active-green);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-inactive {
    background-color: var(--inactive-red);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.badge-crossed {
    background-color: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--primary-green);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .stat-icon {
    font-size: 2.2rem;
    color: var(--primary-green);
}

.stat-card.gold-border {
    border-left-color: var(--accent-gold);
}

.stat-card.gold-border .stat-icon {
    color: #b78103;
}

/* Poster Level Chart Cards */
.level-chart-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.level-chart-card.crossed {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, #ffffff 0%, var(--light-gold) 100%);
}

.level-number-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.level-chart-card.crossed .level-number-badge {
    background: var(--accent-gold);
    color: #000;
}

/* Visual MLM Tree Styles */
.tree-container {
    width: 100%;
    overflow-x: auto;
    padding: 30px 10px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.tree-node-wrapper {
    display: inline-block;
    vertical-align: top;
    margin: 0 10px;
    position: relative;
}

.tree-card {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 160px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tree-card.active {
    border-color: var(--active-green);
    background: #f1f8e9;
}

.tree-card.inactive {
    border-color: var(--inactive-red);
    background: #ffebee;
}

.tree-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.tree-card .member-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    margin-bottom: 2px;
}

.tree-card .member-id {
    font-size: 0.82rem;
    color: #555;
    font-weight: 600;
}

.tree-children {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    position: relative;
}

.tree-children::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: #bbb;
}
