/* General Dashboard Container */
.matrixpro-tree-wrap {
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
}

/* Cards (Total Downline, Earnings, Rank) */
.card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Tables */
.shop_table.shop_table_responsive {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.shop_table th,
.shop_table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.shop_table th {
    background: #f0f0f0;
    font-weight: 600;
}

/* Referral Input & Button */
input[readonly] {
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
}

button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

button:hover {
    background: #005177;
}

/* ============================= */
/* Downline Tree Styling */
/* ============================= */
.matrixpro-tree {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

.matrixpro-tree li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.matrixpro-tree li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 100%;
    border-left: 2px solid #ccc;
}

.matrixpro-tree li::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    width: 20px;
    height: 2px;
    border-top: 2px solid #ccc;
}

.matrixpro-node {
    display: inline-block;
    padding: 8px 12px;
    background: #e0f7fa;
    border: 1px solid #00796b;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    position: relative;
}

.matrixpro-node .matrixpro-level {
    display: block;
    font-size: 0.8em;
    color: #555;
    margin-top: 2px;
}

/* Highlight Levels */
.matrixpro-tree li:nth-child(1) .matrixpro-node { background: #ffe0b2; border-color: #ff9800; }
.matrixpro-tree li:nth-child(2) .matrixpro-node { background: #c8e6c9; border-color: #4caf50; }
.matrixpro-tree li:nth-child(3) .matrixpro-node { background: #bbdefb; border-color: #2196f3; }
.matrixpro-tree li:nth-child(4) .matrixpro-node { background: #d1c4e9; border-color: #673ab7; }
.matrixpro-tree li:nth-child(5) .matrixpro-node { background: #f8bbd0; border-color: #e91e63; }

/* Responsive Tree */
@media (max-width: 768px) {
    .matrixpro-tree-wrap {
        font-size: 0.85em;
    }
    .card {
        padding: 15px;
    }
}

/* Admin Table Styling */
.widefat.striped {
    border-collapse: collapse;
}

.widefat.striped th,
.widefat.striped td {
    padding: 8px 10px;
    border: 1px solid #ddd;
}

.widefat.striped th {
    background: #f0f0f0;
    font-weight: 600;
}

.notice-success {
    padding: 10px 15px;
    background: #d4edda;
    border-left: 4px solid #28a745;
    margin-bottom: 15px;
}
