/* CBT Companion Admin Panel Styles */ /* CSS Variables */ :root { --primary: #3B82F6; --primary-dark: #2563EB; --secondary: #10B981; --danger: #EF4444; --warning: #F59E0B; --background: #F3F4F6; --card-bg: #FFFFFF; --text-primary: #1F2937; --text-secondary: #6B7280; --border-color: #E5E7EB; } /* Base Styles */ * { box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background-color: var(--background); color: var(--text-primary); } /* Background Pattern */ .bg-grid-pattern { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 20px 20px; } /* Card Styles */ .card { background: var(--card-bg); border-radius: 0.75rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); transition: box-shadow 0.2s ease-in-out; } .card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } /* Toast Notifications */ .toast { padding: 1rem 1.5rem; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 0.75rem; animation: slideIn 0.3s ease-out; max-width: 24rem; } .toast-success { background-color: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; } .toast-error { background-color: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; } .toast-warning { background-color: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; } .toast-info { background-color: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } .toast-exit { animation: slideOut 0.3s ease-in forwards; } /* Loading Spinner */ .spinner { border: 3px solid rgba(59, 130, 246, 0.2); border-top-color: var(--primary); border-radius: 50%; width: 2rem; height: 2rem; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Table Styles */ .data-table { width: 100%; border-collapse: collapse; } .data-table th { background-color: #F9FAFB; padding: 0.75rem 1.5rem; text-align: left; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); } .data-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); } .data-table tbody tr:hover { background-color: #F9FAFB; } .data-table tbody tr:last-child td { border-bottom: none; } /* Badge Styles */ .badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; border-radius: 9999px; } .badge-success { background-color: #D1FAE5; color: #065F46; } .badge-danger { background-color: #FEE2E2; color: #991B1B; } .badge-warning { background-color: #FEF3C7; color: #92400E; } .badge-info { background-color: #DBEAFE; color: #1E40AF; } .badge-gray { background-color: #F3F4F6; color: #374151; } /* Alert Panel Styles */ .alert-item { padding: 1rem; border-left: 4px solid var(--danger); background-color: #FEF2F2; transition: background-color 0.2s; } .alert-item:hover { background-color: #FEE2E2; } /* Chart Container */ .chart-container { position: relative; width: 100%; height: 100%; } /* Stats Card */ .stat-card { background: white; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); transition: all 0.2s; } .stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); } .stat-card .stat-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; } .stat-card .stat-value { font-size: 1.875rem; font-weight: 700; line-height: 1.2; } .stat-card .stat-label { font-size: 0.875rem; color: var(--text-secondary); } /* Sidebar Styles */ .sidebar { background: white; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); } .sidebar-nav-item { display: flex; align-items: center; padding: 0.75rem 1rem; border-radius: 0.5rem; color: var(--text-secondary); transition: all 0.2s; } .sidebar-nav-item:hover { background-color: #F3F4F6; color: var(--text-primary); } .sidebar-nav-item.active { background-color: #EFF6FF; color: var(--primary); } /* Tab Styles */ .tab-container { border-bottom: 1px solid var(--border-color); } .tab-item { padding: 1rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: all 0.2s; } .tab-item:hover { color: var(--text-primary); } .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); } /* Responsive Table Scroll */ .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } /* Line Clamp */ .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* Pulse Animation for Alerts */ .pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Gradient Backgrounds */ .gradient-blue { background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%); } .gradient-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); } .gradient-red { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); } .gradient-purple { background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%); } /* Form Inputs */ .input-field { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color); border-radius: 0.5rem; transition: all 0.2s; } .input-field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } /* Button Styles */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; } .btn-primary { background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); color: white; border: none; } .btn-primary:hover { background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%); transform: translateY(-1px); } .btn-secondary { background: white; color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: #F9FAFB; } .btn-danger { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); color: white; border: none; } .btn-danger:hover { background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%); } /* Avatar */ .avatar { width: 2.5rem; height: 2.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; } .avatar-sm { width: 2rem; height: 2rem; font-size: 0.75rem; } .avatar-lg { width: 4rem; height: 4rem; font-size: 1.25rem; } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: #F3F4F6; border-radius: 4px; } ::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #9CA3AF; } /* Responsive Utilities */ @media (max-width: 768px) { .hide-mobile { display: none !important; } .stat-card .stat-value { font-size: 1.5rem; } } @media (min-width: 1024px) { .hide-desktop { display: none !important; } } /* Print Styles */ @media print { .sidebar, .no-print { display: none !important; } body { background: white; } .card { box-shadow: none; border: 1px solid #E5E7EB; } }