/* MEMBER MANAGEMENT ENHANCEMENTS CSS Add this to your main.css or include separately Improves member_view.php and member_edit.php styling */ /* Navigation Fix - Add to all member pages */ .page-cache-control { /* Prevents caching issues with back button */ } /* Enhanced Page Header */ .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid #e5e7eb; } .page-header h1 { font-size: 32px; font-weight: 700; color: #111827; margin: 0 0 8px 0; } .page-subtitle { font-size: 16px; color: #6b7280; margin: 0; } .header-actions { display: flex; gap: 12px; } /* Enhanced Buttons */ .btn { padding: 10px 20px; border-radius: 8px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; } .btn-primary { background: linear-gradient(135deg, #0066cc, #0052a3); color: white; } .btn-primary:hover { background: linear-gradient(135deg, #0052a3, #004080); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,102,204,0.3); } .btn-secondary { background: #f3f4f6; color: #374151; } .btn-secondary:hover { background: #e5e7eb; } /* Statistics Cards - Member View */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 32px; } .stat-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s; } .stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); } .stat-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; } .stat-content h3 { font-size: 32px; font-weight: 700; color: #111827; margin: 0 0 8px 0; } .stat-content p { font-size: 14px; color: #6b7280; margin: 0 0 8px 0; } .stat-meta { font-size: 12px; color: #9ca3af; } /* Enhanced Tab Navigation */ .settings-container { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin-top: 24px; } .settings-nav { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 24px; height: fit-content; } .settings-tabs { list-style: none; padding: 0; margin: 0; } .settings-tabs li { margin-bottom: 8px; } .tab-link { display: block; padding: 12px 16px; color: #6b7280; text-decoration: none; border-radius: 8px; font-weight: 500; transition: all 0.2s; } .tab-link:hover { background: #f3f4f6; color: #111827; } .tab-link.active { background: linear-gradient(135deg, #0066cc, #0052a3); color: white; } .settings-content { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .tab-content { display: none; } .tab-content.active { display: block; } .settings-section { margin-bottom: 32px; } .settings-section h2 { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; } /* Enhanced Form Styling */ .form-group { margin-bottom: 20px; } .form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; transition: all 0.2s; font-family: inherit; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #0066cc; box-shadow: 0 0 0 3px rgba(0,102,204,0.1); } .form-group input:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; } .form-help { display: block; font-size: 12px; color: #6b7280; margin-top: 6px; } .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; } .form-actions { margin-top: 32px; padding-top: 20px; border-top: 2px solid #e5e7eb; display: flex; gap: 12px; } /* Info Display Styling */ .info-item { margin-bottom: 20px; } .info-item label { display: block; font-size: 12px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; } .info-item p { font-size: 16px; color: #111827; margin: 0; } /* Progress Bar */ .progress-container { display: flex; align-items: center; gap: 12px; } .progress-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(to right, #0066cc, #0052a3); transition: width 0.3s ease; } .progress-text { font-size: 14px; font-weight: 600; color: #6b7280; min-width: 48px; } /* Transaction Item Styling */ .transactions-list { display: flex; flex-direction: column; gap: 16px; } .transaction-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 12px; background: #f9fafb; border-left: 4px solid #e5e7eb; } .transaction-item.revenue { background: #ecfdf5; border-left-color: #059669; } .transaction-item.expense { background: #fef2f2; border-left-color: #dc2626; } .transaction-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 50%; background: white; } .transaction-details { flex: 1; } .transaction-description { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; } .transaction-meta { display: flex; gap: 12px; flex-wrap: wrap; } .transaction-date, .transaction-category { font-size: 12px; color: #6b7280; } .transaction-amount { font-size: 18px; font-weight: 700; } .transaction-amount.positive { color: #059669; } .transaction-amount.negative { color: #dc2626; } /* Ticket Item Styling */ .tickets-container { display: grid; gap: 16px; } .ticket-item { background: white; border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; transition: all 0.2s; } .ticket-item:hover { border-color: #0066cc; box-shadow: 0 4px 12px rgba(0,102,204,0.1); } .ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .ticket-id { font-family: monospace; font-weight: 700; color: #6b7280; font-size: 14px; } .ticket-content h4 { font-size: 16px; font-weight: 600; color: #111827; margin: 0 0 12px 0; } .ticket-meta { display: flex; gap: 12px; align-items: center; } .priority-badge { padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; } .priority-low { background: #dbeafe; color: #1e40af; } .priority-medium { background: #fef3c7; color: #92400e; } .priority-high { background: #fee2e2; color: #991b1b; } .priority-critical { background: #7c3aed; color: white; } .ticket-date { font-size: 12px; color: #6b7280; } /* Responsive Adjustments */ @media (max-width: 1024px) { .settings-container { grid-template-columns: 1fr; } .settings-nav { position: static; } .form-row { grid-template-columns: 1fr; } } @media (max-width: 768px) { .page-header { flex-direction: column; align-items: flex-start; gap: 16px; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .transaction-item { flex-direction: column; align-items: flex-start; } } @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } .header-actions { width: 100%; flex-direction: column; } .btn { width: 100%; justify-content: center; } } /* Back Button Prevention - Add this JavaScript */ /* */