/**
 * Loyalty Rewards - Admin Styles
 */

.lrwc-admin {
    max-width: 1200px;
}

/* Stats Grid */
.lrwc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.lrwc-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.lrwc-stat-icon {
    font-size: 32px;
}

.lrwc-stat-info {
    display: flex;
    flex-direction: column;
}

.lrwc-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.lrwc-stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Admin Sections */
.lrwc-admin-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lrwc-admin-section h2 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Settings Sections */
.lrwc-settings-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lrwc-settings-section h2 {
    margin: 0 0 15px;
    font-size: 18px;
}

/* Quick Links */
.lrwc-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Type Badges */
.lrwc-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lrwc-type-earn {
    background: #dcfce7;
    color: #166534;
}

.lrwc-type-redeem {
    background: #fee2e2;
    color: #991b1b;
}

.lrwc-type-bonus {
    background: #dbeafe;
    color: #1e40af;
}

.lrwc-type-manual {
    background: #fef3c7;
    color: #92400e;
}

/* Status Badges */
.lrwc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lrwc-status-active,
.lrwc-status-completed {
    background: #dcfce7;
    color: #166534;
}

.lrwc-status-inactive,
.lrwc-status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.lrwc-status-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Tier Badges */
.lrwc-tier-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lrwc-tier-bronze {
    background: #fef3c7;
    color: #92400e;
}

.lrwc-tier-silver {
    background: #f3f4f6;
    color: #374151;
}

.lrwc-tier-gold {
    background: #fef3c7;
    color: #b45309;
}

.lrwc-tier-platinum {
    background: #ede9fe;
    color: #6d28d9;
}

/* Colors */
.lrwc-positive {
    color: #16a34a;
    font-weight: 600;
}

.lrwc-negative {
    color: #dc2626;
    font-weight: 600;
}

/* Form Styles */
.lrwc-form-inline {
    margin-bottom: 20px;
}

.lrwc-form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.lrwc-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lrwc-form-group label {
    font-weight: 500;
    font-size: 14px;
}

.lrwc-form-group input,
.lrwc-form-group select {
    min-width: 200px;
}

.lrwc-form-submit {
    padding-top: 20px;
}

/* Notice */
.lrwc-notice {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.lrwc-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.lrwc-notice p {
    margin: 0 0 10px;
}

.lrwc-notice ul {
    margin: 0;
    padding-left: 20px;
}

.lrwc-notice li {
    margin-bottom: 5px;
}

/* Tables */
.lrwc-admin table.wp-list-table {
    border-collapse: collapse;
}

.lrwc-admin .wp-list-table td,
.lrwc-admin .wp-list-table th {
    vertical-align: middle;
}

/* Admin Pending Approvals */
.lrwc-admin table {
    margin-top: 20px;
}
.lrwc-admin table td {
    vertical-align: middle;
}
.lrwc-admin .button {
    margin-right: 5px;
}
