/* Smart Referrals – TutorLMS dashboard panel */

.sr-referral-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    font-family: inherit;
}

.sr-referral-panel .sr-hero {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sr-referral-panel .sr-hero h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #111827;
}

.sr-referral-panel .sr-hero p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sr-stat-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sr-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 6px;
}

.sr-stat-value {
    font-size: 20px;
    color: #111827;
}

.sr-share-box {
    margin-bottom: 24px;
}

.sr-share-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.sr-share-row {
    display: flex;
    gap: 8px;
}

.sr-share-row input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
}

.sr-copy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.sr-copy-btn:hover   { background: #1d4ed8; }
.sr-copy-btn:disabled { background: #9ca3af; cursor: default; }

.sr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.sr-table thead th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.sr-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.sr-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.sr-status-pending  { background: #fef3c7; color: #92400e; }
.sr-status-unpaid   { background: #dbeafe; color: #1e40af; }
.sr-status-paid     { background: #d1fae5; color: #065f46; }
.sr-status-rejected { background: #fee2e2; color: #991b1b; }