/* static/css/admin/admin.css */ /* Admin-specific styles */ /* Admin Header */ .admin-header { background: white; border-bottom: 1px solid var(--border-color); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; } .admin-header h1 { font-size: var(--font-2xl); color: var(--text-primary); font-weight: 600; } .header-left { display: flex; align-items: center; gap: var(--spacing-md); } .header-right { display: flex; align-items: center; gap: var(--spacing-md); } .user-info { font-size: var(--font-base); color: var(--text-secondary); } .user-info strong { color: var(--text-primary); font-weight: 600; } .btn-logout { padding: 8px 16px; background: var(--danger-color); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; font-size: var(--font-base); font-weight: 500; transition: all var(--transition-base); } .btn-logout:hover { background: #c0392b; transform: translateY(-1px); } /* Admin Container */ .admin-container { display: flex; min-height: calc(100vh - 64px); } /* Admin Sidebar */ .admin-sidebar { width: 250px; background: white; border-right: 1px solid var(--border-color); padding: var(--spacing-lg) 0; overflow-y: auto; } .nav-menu { list-style: none; padding: 0; margin: 0; } .nav-item { margin-bottom: 4px; } .nav-link { display: flex; align-items: center; padding: 12px 24px; color: var(--text-secondary); text-decoration: none; font-size: var(--font-base); font-weight: 500; transition: all var(--transition-base); border-right: 3px solid transparent; } .nav-link:hover { background: var(--gray-50); color: var(--primary-color); } .nav-link.active { background: var(--primary-color); color: white; border-right-color: var(--primary-dark); } .nav-icon { margin-right: var(--spacing-sm); font-size: var(--font-lg); } /* Admin Content */ .admin-content { flex: 1; padding: var(--spacing-lg); overflow-y: auto; background: var(--bg-secondary); } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--spacing-lg); margin-bottom: var(--spacing-xl); } .stat-card { background: white; border-radius: var(--radius-lg); padding: var(--spacing-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); transition: all var(--transition-base); } .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-md); } .stat-icon { font-size: 32px; opacity: 0.8; } .stat-title { font-size: var(--font-base); color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; } .stat-value { font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--spacing-sm); line-height: 1; } .stat-subtitle { font-size: var(--font-sm); color: var(--text-muted); } .stat-change { display: inline-flex; align-items: center; font-size: var(--font-sm); font-weight: 600; margin-left: var(--spacing-sm); } .stat-change.positive { color: var(--success-color); } .stat-change.negative { color: var(--danger-color); } /* Content Sections */ .content-section { background: white; border-radius: var(--radius-lg); padding: var(--spacing-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); margin-bottom: var(--spacing-lg); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-lg); padding-bottom: var(--spacing-md); border-bottom: 2px solid var(--gray-100); } .section-title { font-size: var(--font-xl); font-weight: 600; color: var(--text-primary); } .section-actions { display: flex; gap: var(--spacing-sm); } /* Data Tables */ .data-table { width: 100%; border-collapse: collapse; } .data-table thead { background: var(--gray-50); } .data-table th { text-align: left; padding: 12px; font-size: var(--font-sm); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-color); } .data-table td { padding: 12px; border-bottom: 1px solid var(--border-color); font-size: var(--font-base); } .data-table tbody tr { transition: background var(--transition-fast); } .data-table tbody tr:hover { background: var(--gray-50); } .data-table tbody tr:last-child td { border-bottom: none; } .table-actions { display: flex; gap: var(--spacing-sm); } .table-actions .btn { padding: 6px 12px; font-size: var(--font-sm); } /* Empty State */ .empty-state { text-align: center; padding: var(--spacing-2xl) var(--spacing-lg); color: var(--text-muted); } .empty-state-icon { font-size: 48px; margin-bottom: var(--spacing-md); opacity: 0.5; } .empty-state h3 { font-size: var(--font-xl); color: var(--text-secondary); margin-bottom: var(--spacing-sm); } .empty-state p { font-size: var(--font-base); color: var(--text-muted); } /* Loading State */ .loading { text-align: center; padding: var(--spacing-2xl); color: var(--text-muted); } .loading-text { margin-top: var(--spacing-md); font-size: var(--font-base); } /* Search and Filters */ .filter-bar { display: flex; gap: var(--spacing-md); margin-bottom: var(--spacing-lg); flex-wrap: wrap; } .filter-group { flex: 1; min-width: 200px; } .search-box { position: relative; flex: 2; min-width: 300px; } .search-input { width: 100%; padding-left: 40px; } .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); } /* Action Buttons */ .action-buttons { display: flex; gap: var(--spacing-sm); justify-content: flex-end; } /* Modal/Dialog */ /* Modal Styles */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal-content { background: white; border-radius: 8px; max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); } .modal-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { margin: 0; font-size: 1.25rem; } .btn-close { background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: #6b7280; } .btn-close:hover { color: #1f2937; } .modal-body { padding: 20px; } .modal-footer { padding: 20px; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 12px; } .info-box { background-color: #eff6ff; border: 1px solid #3b82f6; border-radius: 6px; padding: 12px; color: #1e40af; } .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; } .checkbox-label input[type="checkbox"] { width: auto; margin: 0; } .form-section-divider { border-top: 2px solid #e5e7eb; margin: 32px 0; } /* Small modal variant for confirmations */ .modal-sm { max-width: 500px; } /* Info box styling */ .info-box { background: #e3f2fd; border-left: 4px solid #2196f3; padding: 12px 16px; border-radius: 4px; font-size: 14px; } /* Quick actions spacing */ .quick-actions { display: flex; gap: 12px; flex-wrap: wrap; } /* Success Modal Styles */ .modal-header-success { background: linear-gradient(135deg, #4caf50 0%, #45a049 100%); color: white; border-radius: 8px 8px 0 0; } .modal-header-success .btn-close { color: white; opacity: 0.9; } .modal-header-success .btn-close:hover { opacity: 1; } .success-icon-wrapper { display: flex; justify-content: center; margin: 20px 0; } .success-icon { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #4caf50 0%, #45a049 100%); color: white; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: bold; animation: successPulse 0.6s ease-out; box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3); } @keyframes successPulse { 0% { transform: scale(0.5); opacity: 0; } 50% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } } .transfer-details { background: #f8f9fa; border-radius: 8px; padding: 20px; margin: 20px 0; } .detail-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: white; border-radius: 6px; margin-bottom: 12px; } .detail-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: #666; letter-spacing: 0.5px; } .detail-value { font-size: 15px; } .detail-value strong { color: #333; font-size: 16px; } .detail-arrow { text-align: center; font-size: 24px; color: #4caf50; font-weight: bold; margin: 8px 0; } .modal-md { max-width: 600px; } .btn-block { width: 100%; padding: 12px; font-size: 16px; font-weight: 600; } /* Alert variants in modals */ .modal-body .alert { margin-top: 16px; padding: 12px 16px; border-radius: 6px; border: none; } .modal-body .alert-info { background: #e3f2fd; color: #1976d2; } .modal-body .alert-info strong { color: #0d47a1; } /* Text utilities */ .text-center { text-align: center; } .text-muted { color: #6c757d; font-size: 14px; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mt-3 { margin-top: 1rem; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: var(--spacing-sm); margin-top: var(--spacing-lg); } .pagination-btn { padding: 8px 12px; border: 1px solid var(--border-color); background: white; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-base); } .pagination-btn:hover:not(:disabled) { background: var(--gray-50); border-color: var(--primary-color); } .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; } .pagination-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); } .pagination-info { font-size: var(--font-sm); color: var(--text-muted); } /* Responsive Design */ @media (max-width: 1024px) { .admin-sidebar { width: 200px; } .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } } @media (max-width: 768px) { .admin-container { flex-direction: column; } .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); } .admin-content { padding: var(--spacing-md); } .stats-grid { grid-template-columns: 1fr; } .section-header { flex-direction: column; align-items: flex-start; gap: var(--spacing-md); } .filter-bar { flex-direction: column; } .filter-group, .search-box { width: 100%; } .data-table { font-size: var(--font-sm); } .data-table th, .data-table td { padding: 8px; } } @media (max-width: 480px) { .admin-header { padding: 12px 16px; } .admin-header h1 { font-size: var(--font-lg); } .stat-value { font-size: var(--font-3xl); } .content-section { padding: var(--spacing-md); } /* Make table scrollable on small screens */ .table-wrapper { overflow-x: auto; } .data-table { min-width: 600px; } } /* Print Styles */ @media print { .admin-sidebar, .admin-header .header-right, .section-actions, .table-actions { display: none; } .admin-content { padding: 0; } .content-section { box-shadow: none; border: 1px solid var(--border-color); } /* Value with copy button */ .value-with-copy { display: flex; gap: var(--spacing-sm); align-items: center; flex: 1; } .credential-item.highlight { background: #fff3cd; border: 2px solid var(--warning-color); } .credential-item.highlight .value { background: white; font-weight: 600; color: var(--text-primary); } .btn-copy { background: var(--gray-100); border: 1px solid var(--border-color); padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary); font-size: var(--font-xs); transition: all var(--transition-base); white-space: nowrap; } .btn-copy:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; } /* Text color utilities */ .text-danger { color: var(--danger-color) !important; } .text-warning { color: var(--warning-color) !important; } .text-success { color: var(--success-color) !important; } /* Disabled button styles */ .btn-icon:disabled { opacity: 0.5; cursor: not-allowed; } .btn-icon:disabled:hover { background: white; border-color: var(--border-color); transform: none; } /* Alert improvements */ .alert { animation: slideDown 0.3s ease; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* Form Section Styles */ .form-section-title { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; } .form-control-disabled { background-color: #f3f4f6; cursor: not-allowed; color: #6b7280; } .form-help { font-size: 0.875rem; color: #6b7280; margin-top: 4px; } .text-muted { color: #6b7280; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mt-3 { margin-top: 1rem; } /* Alert Styles */ .alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; } .alert-warning { background-color: #fef3c7; border: 1px solid #f59e0b; color: #92400e; } .alert-warning strong { color: #78350f; } /* Quick Actions */ .quick-actions { display: flex; gap: 12px; flex-wrap: wrap; } .quick-actions .btn { min-width: 180px; } /* Button Sizes */ .btn-sm { padding: 6px 12px; font-size: 0.875rem; } /* Required Field Indicator */ .required { color: #ef4444; font-weight: bold; }