/* Enhanced Question Bank Management Styles */ /* CSS Custom Properties for consistent theming */ :root { --primary-color: #6366f1; --primary-dark: #4f46e5; --primary-light: #818cf8; --secondary-color: #06b6d4; --success-color: #10b981; --warning-color: #f59e0b; --error-color: #ef4444; --background-color: #f8fafc; --surface-color: #ffffff; --text-primary: #1e293b; --text-secondary: #64748b; --border-color: #e2e8f0; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* Enhanced Typography */ .question-bank { margin-bottom: 4rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: var(--radius-2xl); padding: 3rem; color: white; position: relative; overflow: hidden; } .question-bank::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,'); pointer-events: none; } .question-bank h2 { text-align: center; font-size: 3rem; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); position: relative; z-index: 1; } .section-description { text-align: center; font-size: 1.2rem; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; position: relative; z-index: 1; } /* Enhanced Tab System */ .input-tabs { display: flex; justify-content: center; margin-bottom: 3rem; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.2); position: relative; z-index: 1; } .tab-btn { padding: 1rem 2.5rem; border: none; background: transparent; color: rgba(255, 255, 255, 0.8); font-weight: 600; cursor: pointer; border-radius: var(--radius-md); transition: var(--transition); position: relative; overflow: hidden; } .tab-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .tab-btn:hover::before { left: 100%; } .tab-btn.active { background: rgba(255, 255, 255, 0.9); color: var(--primary-color); box-shadow: var(--shadow-md); transform: translateY(-1px); } .tab-content { display: none; animation: fadeInUp 0.5s ease-out; } .tab-content.active { display: block; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Enhanced Input Forms */ .input-form { background: var(--surface-color); border-radius: var(--radius-xl); padding: 3rem; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); position: relative; overflow: hidden; } .input-form::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); } .input-form h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.75rem; } .input-form h3::before { content: ''; width: 4px; height: 2rem; background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); border-radius: 2px; } .form-note { background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%); border: 1px solid #81d4fa; color: #0277bd; padding: 1.25rem; border-radius: var(--radius-md); margin-bottom: 2rem; display: flex; align-items: flex-start; gap: 0.75rem; } .form-note::before { content: '💡'; font-size: 1.25rem; flex-shrink: 0; } .input-group { margin-bottom: 2rem; position: relative; } .input-group.half { flex: 1; } .input-row { display: flex; gap: 1.5rem; } /* Enhanced Form Controls */ .input-group label { display: block; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; font-size: 0.95rem; } .floating-label { position: relative; } .floating-label input, .floating-label textarea, .floating-label select { width: 100%; padding: 1rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; transition: var(--transition); background: var(--surface-color); } .floating-label input:focus, .floating-label textarea:focus, .floating-label select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); transform: translateY(-1px); } .floating-label textarea { min-height: 120px; resize: vertical; font-family: inherit; } /* Enhanced Difficulty Selection */ .difficulty-select { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; } .radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.75rem 1rem; border-radius: var(--radius-md); transition: var(--transition); background: var(--surface-color); border: 2px solid var(--border-color); position: relative; overflow: hidden; } .radio-label::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); opacity: 0; transition: opacity 0.3s ease; } .radio-label:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: var(--shadow-md); } .radio-label input[type="radio"] { position: relative; z-index: 1; accent-color: var(--primary-color); transform: scale(1.2); } /* Enhanced MCQ Section */ .mcq-section { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); border-radius: var(--radius-lg); padding: 2rem; margin: 2rem 0; border: 1px solid var(--border-color); } .mcq-section h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } .mcq-section h4::before { content: '🎯'; font-size: 1.5rem; } .option-inputs { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .option-group { background: var(--surface-color); border-radius: var(--radius-md); padding: 1.5rem; border: 2px solid var(--border-color); transition: var(--transition); position: relative; } .option-group:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); } .option-group label { font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; display: block; font-size: 0.9rem; } .option-text { width: 100%; padding: 1rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.95rem; min-height: 80px; resize: vertical; transition: var(--transition); font-family: inherit; } .option-text:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .correct-answer { width: 100%; padding: 1rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; background: var(--surface-color); transition: var(--transition); } .correct-answer:focus { outline: none; border-color: var(--success-color); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); } /* Enhanced Form Actions */ .form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border-color); } /* Enhanced Button Styles */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border: none; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; text-decoration: none; } .btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .btn:hover::before { width: 300px; height: 300px; } .btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; box-shadow: var(--shadow-md); } .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .btn-success { background: linear-gradient(135deg, var(--success-color), #059669); color: white; } .btn-warning { background: linear-gradient(135deg, var(--warning-color), #d97706); color: white; } .btn-danger { background: linear-gradient(135deg, var(--error-color), #dc2626); color: white; } .btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); } .btn-lg { padding: 1.25rem 2.5rem; font-size: 1.1rem; } /* Enhanced Question Bank */ .bank-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; } .bank-filters { display: flex; gap: 1rem; flex-wrap: wrap; } .search-container { position: relative; } .search-input { padding: 1rem 1rem 1rem 3rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); min-width: 250px; font-size: 1rem; transition: var(--transition); } .search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); } .search-container::before { content: '🔍'; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; } .filter-select { padding: 1rem 1.5rem; border: 2px solid var(--border-color); border-radius: var(--radius-md); background: var(--surface-color); font-size: 1rem; cursor: pointer; transition: var(--transition); } .filter-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); } .bank-actions { display: flex; gap: 1rem; } /* Enhanced Question List */ .question-list { background: var(--surface-color); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-sm); } .question-item { padding: 2rem; border-bottom: 1px solid var(--border-color); transition: var(--transition); position: relative; background: var(--surface-color); } .question-item:hover { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); transform: translateX(4px); box-shadow: var(--shadow-sm); } .question-item:last-child { border-bottom: none; } .question-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color)); transform: scaleY(0); transition: transform 0.3s ease; } .question-item:hover::before { transform: scaleY(1); } .question-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; } .question-id { background: linear-gradient(135deg, var(--text-primary), #475569); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; font-family: 'Fira Code', monospace; box-shadow: var(--shadow-sm); } .question-type { padding: 0.5rem 1rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: var(--shadow-sm); } .question-type.mcq { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; } .question-type.essay { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; } .question-type.short-answer { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; } .question-domain { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; } /* Enhanced Difficulty Badges */ .difficulty-badge { padding: 0.5rem 1rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: var(--shadow-sm); } .difficulty-1 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; } .difficulty-2 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; } .difficulty-3 { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #9a3412; } .difficulty-4 { background: linear-gradient(135deg, #fecaca, #fca5a5); color: #991b1b; } .difficulty-5 { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; } .question-preview { margin-bottom: 1.5rem; } .question-preview p { color: var(--text-primary); line-height: 1.7; margin: 0; font-size: 1rem; } .question-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; } .meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; } .meta-item::before { content: ''; width: 4px; height: 4px; background: var(--text-secondary); border-radius: 50%; opacity: 0.5; } /* Enhanced Action Buttons */ .question-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; } .action-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; position: relative; overflow: hidden; } .action-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255, 255, 255, 0.2); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; } .action-btn:hover::before { width: 200px; height: 200px; } .action-btn.edit { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; box-shadow: var(--shadow-sm); } .action-btn.preview { background: linear-gradient(135deg, var(--success-color), #059669); color: white; box-shadow: var(--shadow-sm); } .action-btn.delete { background: linear-gradient(135deg, var(--error-color), #dc2626); color: white; box-shadow: var(--shadow-sm); } /* Enhanced No Questions Message */ .no-questions { text-align: center; padding: 4rem; color: var(--text-secondary); font-size: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; } .no-questions::before { content: '📚'; font-size: 4rem; opacity: 0.5; } /* Enhanced Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; padding: 2rem; background: var(--surface-color); border-radius: var(--radius-lg); border: 1px solid var(--border-color); } .page-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border: 2px solid var(--border-color); background: var(--surface-color); border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); font-weight: 500; } .page-btn:hover:not(:disabled) { border-color: var(--primary-color); background: var(--primary-color); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); } .page-btn:disabled { opacity: 0.5; cursor: not-allowed; } .page-info { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1rem; background: var(--background-color); border-radius: var(--radius-md); } /* Loading States */ .loading { display: inline-flex; align-items: center; gap: 0.5rem; } .loading::after { content: ''; width: 16px; height: 16px; border: 2px solid transparent; border-top: 2px solid currentColor; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Success/Error Messages */ .message { padding: 1rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; } .message.success { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; border: 1px solid #86efac; } .message.error { background: linear-gradient(135deg, #fecaca, #fca5a5); color: #991b1b; border: 1px solid #f87171; } .message.warning { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #fbbf24; } /* Enhanced Responsive Design */ @media (max-width: 768px) { .question-bank { padding: 2rem 1rem; margin: 0 -1rem 4rem -1rem; border-radius: 0; } .question-bank h2 { font-size: 2.5rem; } .input-tabs { flex-direction: column; gap: 0.5rem; } .tab-btn { padding: 1rem; } .input-form { padding: 2rem 1rem; margin: 0 -1rem; border-radius: 0; } .bank-header { flex-direction: column; align-items: stretch; } .bank-filters { flex-direction: column; } .search-input, .filter-select { min-width: auto; } .bank-actions { justify-content: stretch; } .bank-actions button { flex: 1; justify-content: center; } .question-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; } .question-meta { flex-direction: column; gap: 0.75rem; } .question-actions { flex-wrap: wrap; gap: 0.5rem; } .action-btn { flex: 1; justify-content: center; min-width: 0; } .input-row { flex-direction: column; } .difficulty-select { flex-wrap: wrap; gap: 0.75rem; } .form-actions { flex-direction: column; gap: 1rem; } .option-inputs { grid-template-columns: 1fr; } .pagination { flex-wrap: wrap; justify-content: center; } } /* Print Styles */ @media print { .question-bank { background: white !important; color: black !important; box-shadow: none !important; } .form-actions, .bank-actions, .question-actions { display: none !important; } .input-form { box-shadow: none !important; border: 1px solid #ccc !important; } } /* Dark mode support */ @media (prefers-color-scheme: dark) { :root { --background-color: #0f172a; --surface-color: #1e293b; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --border-color: #334155; } }