/* Form Styles */
.mrcrm-form-container {
    max-width: 700px;
    margin: 20px 0;
}

.mrcrm-referral-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.mrcrm-form-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.mrcrm-section-label {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    font-size: 18px;
}

.mrcrm-form-row {
    margin-bottom: 20px;
}

.mrcrm-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mrcrm-form-row input[type="date"],
.mrcrm-form-row input[type="number"],
.mrcrm-form-row select,
.mrcrm-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mrcrm-checkbox-row label {
    display: inline-block;
    font-weight: normal;
}

.mrcrm-checkbox-row input[type="checkbox"] {
    margin-right: 8px;
}

.mrcrm-submit-btn {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.mrcrm-submit-btn:hover {
    background: #005177;
}

.mrcrm-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* List/Table Styles */
.mrcrm-list-container {
    margin: 20px 0;
}

.mrcrm-filters {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.mrcrm-filter-group {
    display: flex;
    flex-direction: column;
}

.mrcrm-filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.mrcrm-filter-group select,
.mrcrm-filter-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mrcrm-filter-btn,
.mrcrm-reset-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.mrcrm-filter-btn {
    background: #0073aa;
    color: white;
}

.mrcrm-reset-btn {
    background: #ddd;
    color: #333;
}

.mrcrm-referrals-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mrcrm-referrals-table th,
.mrcrm-referrals-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.mrcrm-referrals-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.mrcrm-referrals-table tbody tr:hover {
    background: #f9f9f9;
}

.mrcrm-actions {
    white-space: nowrap;
}

.mrcrm-edit-btn,
.mrcrm-delete-btn {
    padding: 5px 10px;
    margin-right: 5px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}

.mrcrm-edit-btn {
    background: #0073aa;
    color: white;
}

.mrcrm-delete-btn {
    background: #dc3232;
    color: white;
}

/* Urgency Badges */
.mrcrm-urgency-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
}

.urgency-1 {
    background: #dc3232;
    color: white;
}

.urgency-2 {
    background: #ff9800;
    color: white;
}

.urgency-3 {
    background: #ffc107;
    color: #333;
}

.urgency-4 {
    background: #4caf50;
    color: white;
}

.urgency-5 {
    background: #2196f3;
    color: white;
}

/* Stats Styles */
.mrcrm-stats-container {
    margin: 20px 0;
}

.mrcrm-member-select-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.mrcrm-member-select-form .mrcrm-filter-group {
    display: flex;
    flex-direction: column;
}

.mrcrm-date-range {
    font-size: 16px;
    color: #666;
    font-weight: normal;
}

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

.mrcrm-stat-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.mrcrm-stat-box h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.mrcrm-stat-number {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.mrcrm-stat-detail {
    margin: 5px 0;
    color: #666;
}

.mrcrm-stat-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2ea44f;
    margin: 15px 0 5px 0;
}

.mrcrm-stat-box-highlight {
    background: #e8f5e9;
    border: 2px solid #2ea44f;
}
