/* Member Referrer Dashboard Styles */

.kgmb-member-referrer-dashboard,
.kgmb-member-referrer-application {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 600;
}

.welcome-message {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Cards */
.referrer-info-card,
.status-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.referrer-info-card h3,
.status-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referrer-id {
    font-size: 1.2em;
    font-weight: bold;
    color: #2980b9;
    font-family: 'Courier New', monospace;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-approved {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Referral Link Container */
.referral-link-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.referral-link-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
}

.copy-link-btn {
    padding: 12px 20px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.copy-link-btn:hover {
    background-color: #2980b9;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
	padding: 30px;
}

.stats-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: transform 0.2s ease;
}

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

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    color: #006400;
    margin-bottom: 8px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Styles */
.referrals-table {
    overflow-x: auto;
    margin-top: 15px;
}

.kgmb-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kgmb-table th,
.kgmb-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.kgmb-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.kgmb-table tr:hover {
    background-color: #f8f9fa;
}

/* No Referrals Section */
.no-referrals {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.no-referrals h3 {
    color: #7f8c8d;
    margin-bottom: 10px;
}

.no-referrals p {
    color: #95a5a6;
}

/* Referral Tips */
.referral-tips {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.referral-tips h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.referral-tips ul {
    margin: 0;
    padding-left: 20px;
}

.referral-tips li {
    margin-bottom: 8px;
    color: #555;
}

/* Application Specific Styles */
.application-header {
    text-align: center;
    margin-bottom: 30px;
}

.application-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin: 0;
}

.status-card.status-approved {
    border-left: 4px solid #27ae60;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.application-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #555;
}

.detail-row .value {
    color: #2c3e50;
}

.referral-link-section,
.performance-summary,
.benefits-section {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.referral-link-section h4,
.performance-summary h4,
.benefits-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.performance-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.performance-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 5px;
}

.performance-label {
    font-size: 0.85em;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
}

.benefits-list {
    margin: 0;
    padding-left: 20px;
}

.benefits-list li {
    margin-bottom: 8px;
    color: #555;
}

/* Error Messages */
.kgmb-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .kgmb-member-referrer-dashboard,
    .kgmb-member-referrer-application {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .referral-link-container {
        flex-direction: column;
    }
    
    .copy-link-btn {
        width: 100%;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-header h2,
    .application-header h2 {
        font-size: 1.8em;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .kgmb-table {
        font-size: 0.9em;
    }
    
    .kgmb-table th,
    .kgmb-table td {
        padding: 8px 10px;
    }
}