/**
 * Affiliate Dashboard Styles
 * RenderCAD - WWLD Style
 */

/* Stat Cards */
.stat-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Referral Link Box */
.referral-link-box .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
}

.referral-link-box .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #f50057;
    box-shadow: 0 0 0 0.2rem rgba(245, 0, 87, 0.25);
    color: #fff;
}

/* Commission Table */
#commissions-table {
    margin-bottom: 0;
}

#commissions-table th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

#commissions-table td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Program Steps */
.program-step {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f50057, #c51162);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 auto 1rem;
}

/* Card Styling */
.card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* No Commissions State */
#no-commissions {
    color: rgba(255, 255, 255, 0.6);
}

#no-commissions i {
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .program-step {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    #commissions-table {
        font-size: 0.85rem;
    }
}

/* Input Group Styling */
.input-group .studio-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Refresh Button */
#refresh-btn {
    padding: 0.25rem 0.75rem;
}

#refresh-btn i {
    transition: transform 0.3s ease;
}

/* Empty state icon */
.fa-inbox {
    color: rgba(255, 255, 255, 0.3);
}

/* Success colors for stats */
.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}
