.subject-list-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .subject-list-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.subject-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.dark-theme .subject-list-header{border-bottom-color:#374151}.subject-list-title{font-size:1.8rem;font-weight:700;color:#111827;margin:0}.dark-theme .subject-list-title{color:#f3f4f6}.subject-list-header-info{display:flex;align-items:center;gap:16px}.subject-list-total{font-size:1.5rem;color:#6b7280;font-weight:500}.dark-theme .subject-list-total{color:#9ca3af}.subject-list-table{width:100%}.subject-list-table-header{display:flex;gap:24px;margin-bottom:20px;padding:0 8px}.subject-add-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:8px;background-color:#4f46e5;color:#fff;font-weight:500;box-shadow:0 2px 6px rgba(0,0,0,.1);transition:background-color .2s ease,transform .1s ease}.subject-add-btn:hover{background-color:#4338ca}.subject-add-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(99,102,241,.5)}.subject-add-btn:active{transform:scale(.97)}.subject-list-column{padding:12px 8px}.subject-column-title{font-weight:700;color:#374151;font-size:1.2rem;text-transform:uppercase;letter-spacing:.5px}.dark-theme .subject-column-title{color:#d1d5db}.subject-column-image{width:8%}.subject-column-name{width:22%}.subject-column-code{width:10%}.subject-column-packages{width:20%}.subject-column-status{width:12%}.subject-column-created{width:13%}.subject-list-divider{height:2px;background-color:#e5e7eb;margin-bottom:20px}.dark-theme .subject-list-divider{background-color:#374151}.subject-list-items{display:flex;flex-direction:column;gap:20px}.subject-list-item{padding:20px 16px;background:#fafafa;border-radius:12px;transition:all .3s ease}.subject-list-item:hover{background:#f8f9fa;transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1)}.dark-theme .subject-list-item{background:#293444;box-shadow:0 4px 12px rgba(0,0,0,.15)}.dark-theme .subject-list-item:hover{background:#374151;box-shadow:0 4px 12px rgba(0,0,0,.3)}.subject-item-content{display:flex;gap:24px;align-items:center}.subject-image-wrapper{width:120px;height:120px;border-radius:12px;overflow:hidden;background:#f3f4f6;display:flex;align-items:flex-start;justify-content:center}.subject-image-wrapper img.subject-image{width:100%;height:100%;object-fit:cover;object-position:top center}.dark-theme .subject-image-wrapper{background:#374151}.subject-image{width:100%;height:100%;object-fit:cover}.subject-name-content{align-items:center;gap:16px}.subject-name{margin-bottom:4px}.subject-description{line-clamp:3;-webkit-line-clamp:3}.subject-code{font-size:1.2rem;color:#374151;font-weight:600;font-family:monospace}.dark-theme .subject-code{color:#d1d5db}.subject-packages-tags{display:flex;flex-wrap:wrap;gap:8px}.subject-package-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#eef2ff;color:#374151;border-radius:9999px;font-size:1rem;font-weight:600;transition:all .2s}.subject-package-tag .price{color:#059669}.subject-package-tag:hover{background:#dbeafe;transform:translateY(-2px)}.dark-theme .subject-package-tag{background:#334b82;color:#e5e7eb}.subject-status-content{display:flex;flex-direction:column;gap:8px}.subject-status-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;font-size:1rem;font-weight:600;line-height:1.2}.subject-status-bg-active{background-color:#d1fae5}.subject-status-bg-inactive{background-color:#e5e7eb}.dark-theme .subject-status-bg-active{background-color:#065f46}.dark-theme .subject-status-bg-inactive{background-color:#4b5563}.subject-status-active{color:#059669}.subject-status-inactive{color:#374151}.dark-theme .subject-status-active{color:#34d399}.dark-theme .subject-status-inactive{color:#d1d5db}.subject-status-actions{display:flex;gap:6px}.subject-action-btn{width:32px;height:32px;border-radius:6px;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s}.subject-action-btn:hover{transform:translateY(-2px);box-shadow:0 2px 8px rgba(0,0,0,.15)}.subject-action-success{background:#d1fae5;color:#059669}.subject-action-warning{background:#fef3c7;color:#d97706}.subject-action-view{background:#dbeafe;color:#2563eb}.subject-action-edit{background:#fef3c7;color:#d97706}.subject-action-delete{background:#fee2e2;color:#dc2626}.dark-theme .subject-action-success{background:#065f46;color:#34d399}.dark-theme .subject-action-warning{background:#92400e;color:#fbbf24}.dark-theme .subject-action-view{background:#1e40af;color:#93c5fd}.dark-theme .subject-action-edit{background:#92400e;color:#fbbf24}.dark-theme .subject-action-delete{background:#7f1d1d;color:#fca5a5}.subject-created-date{font-size:1rem;color:#6b7280}.dark-theme .subject-created-date{color:#9ca3af}.subject-actions-content,.subject-list-pagination{display:flex;gap:8px;justify-content:center}.subject-list-pagination{margin-top:32px;padding-top:24px;border-top:2px solid #f3f4f6}.dark-theme .subject-list-pagination{border-top-color:#374151}.subject-pagination-btn{padding:12px 18px;border:2px solid #e5e7eb;background:white;border-radius:8px;cursor:pointer;transition:all .2s;font-size:1.5rem;font-weight:600;min-width:48px;height:48px;display:flex;align-items:center;justify-content:center}.subject-pagination-btn:hover:not(:disabled){background:#f3f4f6;transform:translateY(-2px)}.subject-pagination-btn:disabled{opacity:.5;cursor:not-allowed}.dark-theme .subject-pagination-btn{background:#374151;border-color:#4b5563;color:#d1d5db}.dark-theme .subject-pagination-btn:hover:not(:disabled){background:#4b5563}.subject-pagination-active{background:#3b82f6;color:white;border-color:#3b82f6}.dark-theme .subject-pagination-active{background:#1d4ed8;border-color:#1d4ed8}.subject-pagination-next,.subject-pagination-prev{font-size:1.25rem}.subject-list-loading{text-align:center;padding:80px 0}.subject-list-loading-text{color:#6b7280;font-size:1.5rem;font-weight:500}.dark-theme .subject-list-loading-text{color:#9ca3af}.subject-list-error{text-align:center;padding:80px 0}.subject-list-error-text{color:#dc2626;font-size:1.5rem;margin-bottom:24px;font-weight:500}.dark-theme .subject-list-error-text{color:#ef4444}.subject-list-retry-btn{padding:12px 24px;background-color:#3b82f6;color:white;border:none;border-radius:8px;cursor:pointer;font-size:1.5rem;font-weight:600;transition:all .2s}.subject-list-retry-btn:hover{background-color:#2563eb;transform:translateY(-2px)}.dark-theme .subject-list-retry-btn{background-color:#1d4ed8}.dark-theme .subject-list-retry-btn:hover{background-color:#1e40af}.subject-list-empty{text-align:center;padding:60px 0}.subject-list-empty-text{color:#6b7280;font-size:1.25rem;font-weight:500}.dark-theme .subject-list-empty-text{color:#9ca3af}@media (max-width:1024px){.subject-list-container{padding:24px}.subject-list-title{font-size:2rem}.subject-column-title{font-size:1rem}.subject-name{font-size:1.5rem}.subject-code{font-size:1rem}}@media (max-width:768px){.subject-list-container{padding:20px;border-radius:12px}.subject-list-header{flex-direction:column;gap:16px;align-items:flex-start}.subject-list-header-info{flex-wrap:wrap;gap:8px}.subject-list-title{font-size:1.75rem}.subject-item-content,.subject-list-table-header{flex-direction:column;align-items:flex-start;gap:16px}.subject-list-column{width:100%!important;margin-bottom:12px;padding:8px 0}.subject-name-content{flex-direction:column;align-items:flex-start}.subject-actions-content{justify-content:flex-start}.subject-list-item{padding:24px 20px}.subject-image-wrapper{width:180px;height:160px}.subject-pagination-btn{padding:10px 14px;font-size:1rem;min-width:42px;height:42px}.subject-column-code,.subject-column-created,.subject-column-title,.subject-list-divider,.subject-list-table-header{display:none}.subject-image-wrapper{width:100%;height:200px}.subject-name-content{flex-direction:row;align-items:center;gap:12px}.subject-item-content{flex-direction:column;align-items:flex-start;gap:16px}}@media (max-width:480px){.subject-list-container{padding:16px;border-radius:10px}.subject-list-title{font-size:1.5rem}.subject-list-total{font-size:1rem}.subject-list-item{padding:20px 16px}.subject-status-badge{font-size:.875rem;padding:6px 10px}.subject-action-btn{flex:1 1;max-width:100%}.subject-pagination-btn{padding:8px 12px;font-size:.875rem;min-width:36px;height:36px}.subject-image-wrapper{width:100%;height:200px}.subject-column-code,.subject-column-created,.subject-column-title,.subject-list-divider,.subject-list-table-header{display:none}}.subject-list-item{transition:all .5s ease;opacity:1;transform:translateX(0)}.subject-list-item.deleting{opacity:0;transform:translateX(-20px);height:0;margin:0;padding:0;overflow:hidden}.subject-column-chapters{width:20%}.subject-chapters,.subject-chapters-tags{display:flex;flex-wrap:wrap;gap:8px}.subject-chapter-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#eef2ff;color:#374151;border-radius:9999px;font-size:1rem;font-weight:600;transition:all .2s}.subject-chapter-tag:hover{background:#bae6fd;transform:translateY(-2px)}.dark-theme .subject-chapter-tag{background:#1e3a8a;color:#bfdbfe}.subject-no-chapters{font-size:1rem;color:#6b7280}.dark-theme .subject-no-chapters{color:#9ca3af}.subject-column-stats{width:18%}.stats-badges,.subject-stats{display:flex;flex-wrap:wrap}.stats-badges{gap:8px}.stat-badge{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:9999px;font-size:.875rem;font-weight:600;line-height:1}.stat-badge.packages{background:#e0f2fe;color:#0369a1}.stat-badge.exams{background:#fce7f3;color:#be185d}.stat-badge.chapters{background:#dcfce7;color:#166534}.stat-badge.questions{background:#fef3c7;color:#92400e}.dark-theme .stat-badge.packages{background:#1e3a8a;color:#93c5fd}.dark-theme .stat-badge.exams{background:#831843;color:#f9a8d4}.dark-theme .stat-badge.chapters{background:#14532d;color:#86efac}.dark-theme .stat-badge.questions{background:#78350f;color:#fcd34d}.subject-column-exams{width:18%}.subject-exams,.subject-exams-tags{display:flex;flex-wrap:wrap;gap:8px}.subject-exam-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:#f3e8ff;color:#7c3aed;border-radius:9999px;font-size:.875rem;font-weight:600;transition:all .2s}.subject-exam-tag:hover{background:#e9d5ff;transform:translateY(-2px)}.subject-exam-tag .exam-type{font-size:.75rem;text-transform:uppercase;background:#7c3aed;color:white;padding:2px 6px;border-radius:9999px}.dark-theme .subject-exam-tag{background:#4c1d95;color:#c4b5fd}.dark-theme .subject-exam-tag .exam-type{background:#c4b5fd;color:#4c1d95}.subject-no-exams{font-size:1rem;color:#6b7280}.dark-theme .subject-no-exams{color:#9ca3af}.subject-no-packages{font-size:1rem;color:#6b7280}.dark-theme .subject-no-packages{color:#9ca3af}.subject-column-image{width:7%}.subject-column-name{width:18%}.subject-column-chapters,.subject-column-packages{width:15%}.subject-column-created{width:12%}.subject-column-actions{width:10%}@media (max-width:1024px){.subject-column-stats{width:22%}.stats-badges{flex-direction:column;gap:6px}}@media (max-width:768px){.subject-column-exams,.subject-column-stats{width:100%}.stats-badges{flex-direction:row;justify-content:flex-start}}.subject-name{font-size:1.4rem;margin-bottom:8px;-webkit-line-clamp:1;line-clamp:1}.subject-description,.subject-name{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.subject-description{font-size:1rem;line-height:1.4;margin-top:6px;display:box;display:-moz-box;-webkit-line-clamp:2;line-clamp:2;box-orient:vertical}.subject-name-content{display:flex;flex-direction:column;gap:10px;margin-left:16px}.subject-description,.subject-name{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;overflow-wrap:anywhere;max-width:100%;white-space:normal!important}.subject-details-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .subject-details-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.subject-details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.dark-theme .subject-details-header{border-bottom-color:#374151}.subject-details-title-section h2{font-size:2rem;font-weight:700;color:#111827;margin:0 0 8px}.dark-theme .subject-details-title-section h2{color:#f3f4f6}.subject-details-code{color:#6b7280;font-size:1.1rem}.dark-theme .subject-details-code{color:#9ca3af}.subject-details-actions{display:flex;gap:12px;align-items:center}.subject-details-card{display:flex;gap:32px;margin-bottom:32px;padding:24px;background:#fafafa;border-radius:12px}.dark-theme .subject-details-card{background:#293444}.subject-image-wrapper.large{width:120px;height:120px;border-radius:16px;overflow:hidden;background:#f3f4f6;flex-shrink:0}.dark-theme .subject-image-wrapper.large{background:#374151}.subject-details-info-section{flex:1 1}.subject-name{font-size:1.8rem;font-weight:700;color:#111827;margin:0 0 16px}.dark-theme .subject-name{color:#f3f4f6}.subject-description{color:#6b7280;font-size:1.1rem;line-height:1.6;margin-bottom:24px}.dark-theme .subject-description{color:#9ca3af}.subject-meta{display:flex;flex-direction:column;gap:8px}.meta-item{gap:8px}.meta-label{font-weight:600;color:#374151;min-width:120px}.dark-theme .meta-label{color:#d1d5db}.meta-value{color:#6b7280}.dark-theme .meta-value{color:#9ca3af}.package-form,.subject-edit-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-weight:600;color:#374151}.dark-theme .form-group label{color:#d1d5db}.form-group input,.form-group select,.form-group textarea{padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:white}.dark-theme .form-group input,.dark-theme .form-group select,.dark-theme .form-group textarea{background:#374151;border-color:#4b5563;color:#f3f4f6}.form-actions{gap:12px;margin-top:16px}.subject-packages-section{margin-top:32px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.section-title{font-size:1.5rem;font-weight:700;color:#111827;margin:0}.dark-theme .section-title{color:#f3f4f6}.packages-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:16px;gap:16px}.package-card{padding:20px;background:white;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.05);border:2px solid #f3f4f6}.dark-theme .package-card{background:#293444;border-color:#374151;box-shadow:0 4px 12px rgba(0,0,0,.15)}.package-name{font-size:1.2rem;font-weight:600;color:#111827;margin:0 0 12px}.dark-theme .package-name{color:#f3f4f6}.package-details{display:flex;align-items:center;gap:16px;margin-bottom:12px}.package-price{font-weight:700;color:#059669;font-size:1.1rem}.dark-theme .package-price{color:#34d399}.package-status{padding:4px 12px;border-radius:20px;font-size:.875rem;font-weight:600}.status-active{background:#d1fae5;color:#059669}.status-inactive{background:#e5e7eb;color:#374151}.status-free{background:#dbeafe;color:#2563eb}.dark-theme .status-active{background:#065f46;color:#34d399}.dark-theme .status-inactive{background:#4b5563;color:#d1d5db}.dark-theme .status-free{background:#1e40af;color:#93c5fd}.package-date{color:#6b7280;font-size:.875rem;margin-bottom:16px}.dark-theme .package-date{color:#9ca3af}.package-actions{display:flex;gap:8px}.btn-delete,.btn-edit,.btn-primary,.btn-secondary,.subject-details-back-btn,.subject-details-edit-btn,.subject-details-retry-btn{padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-block;text-align:center}.btn-primary:hover{background:#2563eb;transform:translateY(-2px)}.btn-secondary:hover{background:#d1d5db;transform:translateY(-2px)}.dark-theme .btn-secondary:hover{background:#6b7280}.btn-edit{background:#fef3c7;color:#d97706;padding:8px 16px;font-size:.875rem}.btn-edit:hover{background:#fde68a;transform:translateY(-1px)}.btn-delete{background:#fee2e2;color:#dc2626;padding:8px 16px;font-size:.875rem}.btn-delete:hover{background:#fecaca;transform:translateY(-1px)}.subject-details-edit-btn{background:#fef3c7;color:#d97706}.subject-details-edit-btn:hover{background:#fde68a;transform:translateY(-2px)}.subject-details-back-btn{background:#e5e7eb;color:#374151}.subject-details-back-btn:hover{background:#d1d5db;transform:translateY(-2px)}.subject-details-retry-btn{background:#3b82f6;color:white;margin-right:12px}.subject-details-retry-btn:hover{background:#2563eb;transform:translateY(-2px)}.package-form-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:white;padding:32px;border-radius:16px;width:90%;max-width:500px;max-height:90vh;overflow-y:auto}.dark-theme .modal-content{background:#1e293b}.modal-content h4{margin:0 0 24px;color:#111827;font-size:1.5rem}.dark-theme .modal-content h4{color:#f3f4f6}.subject-details-error,.subject-details-loading{text-align:center;padding:80px 0}.subject-details-error-text,.subject-details-loading-text{font-size:1.5rem;margin-bottom:24px}.subject-details-error-text{color:#dc2626}.dark-theme .subject-details-error-text{color:#ef4444}.no-packages{text-align:center;padding:40px 0;color:#6b7280;font-style:italic}.dark-theme .no-packages{color:#9ca3af}@media (max-width:768px){.subject-details-header{flex-direction:column;gap:16px;align-items:flex-start}.subject-details-card{flex-direction:column;text-align:center}.subject-image-wrapper.large{margin:0 auto}.packages-list{grid-template-columns:1fr}}.subject-chapters-section{margin-top:32px;padding-top:32px;border-top:2px solid #f3f4f6}.dark-theme .subject-chapters-section{border-top-color:#374151}.chapters-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:16px;gap:16px;margin-top:16px}.chapter-card{padding:20px;background:white;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.05);border:2px solid #f3f4f6;transition:all .3s ease}.dark-theme .chapter-card{background:#293444;border-color:#374151;box-shadow:0 4px 12px rgba(0,0,0,.15)}.chapter-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.1)}.dark-theme .chapter-card:hover{box-shadow:0 6px 16px rgba(0,0,0,.25)}.chapter-info{margin-bottom:16px}.chapter-name{font-size:1.2rem;font-weight:600;color:#111827;margin:0 0 12px;line-height:1.4}.dark-theme .chapter-name{color:#f3f4f6}.chapter-date{color:#6b7280;font-size:.875rem}.dark-theme .chapter-date{color:#9ca3af}.chapter-actions{display:flex;gap:8px;justify-content:flex-end}.chapter-form-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.chapter-form{display:flex;flex-direction:column;gap:16px}.no-chapters{text-align:center;padding:40px 0;color:#6b7280;font-style:italic;grid-column:1/-1}.dark-theme .no-chapters{color:#9ca3af}.chapter-btn-primary{background:#2275fc;color:white;padding:8px 16px;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s}.chapter-btn-primary:hover{background:#1a67e8;transform:translateY(-1px)}@keyframes chapterSlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.chapter-card{animation:chapterSlideIn .3s ease}@media (max-width:768px){.chapters-list{grid-template-columns:1fr}.chapter-card{padding:16px}.chapter-name{font-size:1.1rem}}.chapter-status{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600;margin-left:8px}.chapter-status-active{background:#d1fae5;color:#059669}.chapter-status-inactive{background:#e5e7eb;color:#374151}.dark-theme .chapter-status-active{background:#065f46;color:#34d399}.dark-theme .chapter-status-inactive{background:#4b5563;color:#d1d5db}.chapter-card.dragging{opacity:.5;box-shadow:0 8px 24px rgba(34,117,252,.3)}.chapter-progress{height:4px;background:#e5e7eb;border-radius:2px;margin-top:8px;overflow:hidden}.chapter-progress-bar{height:100%;background:#2275fc;border-radius:2px;transition:width .3s ease}.dark-theme .chapter-progress{background:#374151}.dark-theme .chapter-progress-bar{background:#1a67e8}.chapters-count{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:#f3f4f6;color:#374151;border-radius:20px;font-size:.875rem;font-weight:600;margin-left:12px}.dark-theme .chapters-count{background:#374151;color:#d1d5db}.subject-edit-form .image-uploader{border:2px dashed #e5e7eb;border-radius:12px;padding:20px;background:#fafafa;text-align:center}.dark-theme .subject-edit-form .image-uploader{border-color:#4b5563;background:#374151}.subject-edit-form .image-uploader-preview{margin-bottom:16px}.subject-edit-form .image-preview-container{position:relative;display:inline-block;margin:0 auto}.subject-edit-form .image-preview{width:100px;height:100px;object-fit:cover;border-radius:8px;border:2px solid #e5e7eb}.dark-theme .subject-edit-form .image-preview{border-color:#4b5563}.subject-edit-form .image-remove-btn{position:absolute;top:-8px;right:-8px;width:24px;height:24px;background:#dc2626;color:white;border:none;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}.subject-edit-form .image-uploader-placeholder{color:#6b7280;font-size:2.5rem;margin-bottom:8px}.dark-theme .subject-edit-form .image-uploader-placeholder{color:#9ca3af}.subject-edit-form .image-uploader-placeholder span{display:block;font-size:.9rem;margin-top:8px}.subject-edit-form .image-uploader-label{display:inline-block;padding:10px 20px;background:#2275fc;color:white;border-radius:8px;cursor:pointer;font-weight:600;transition:background-color .2s}.subject-edit-form .image-uploader-label:hover{background:#1a67e8}.subject-edit-form .image-uploader-error{color:#dc2626;font-size:.9rem;margin-top:8px;padding:8px;background:#fee2e2;border-radius:6px;border:1px solid #fecaca}.dark-theme .subject-edit-form .image-uploader-error{color:#fca5a5;background:#7f1d1d;border-color:#991b1b}.subject-edit-form .image-uploader-loading{display:flex;align-items:center;justify-content:center;gap:8px;color:#6b7280;font-size:.9rem;margin-top:8px;padding:8px;background:#f3f4f6;border-radius:6px}.dark-theme .subject-edit-form .image-uploader-loading{color:#9ca3af;background:#374151}.subject-edit-form .image-selected{margin-top:12px;padding:8px 12px;background:#d1fae5;color:#065f46;border-radius:6px;font-size:.9rem;text-align:center}.dark-theme .subject-edit-form .image-selected{background:#065f46;color:#34d399}.subject-edit-form .image-filename{font-weight:600;word-break:break-all}@media (max-width:768px){.subject-edit-form .image-uploader{padding:16px}.subject-edit-form .image-preview{width:80px;height:80px}.subject-edit-form .image-uploader-placeholder{font-size:2rem}}.subject-edit-form .image-uploader.drag-over{border-color:#2275fc;background:#dbeafe}.dark-theme .subject-edit-form .image-uploader.drag-over{border-color:#1a67e8;background:#1e3a8a}.current-image-preview{text-align:center;margin-bottom:16px}.current-image-preview img{max-width:150px;max-height:150px;border-radius:8px;border:2px solid #e5e7eb}.dark-theme .current-image-preview img{border-color:#4b5563}.current-image-label{display:block;margin-top:8px;color:#6b7280;font-size:.9rem}.dark-theme .current-image-label{color:#9ca3af}.image-uploader-button{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;background:#2275fc;color:white;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s;text-decoration:none}.image-uploader-button:hover{background:#1a67e8;transform:translateY(-1px)}.image-uploader-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none}.dark-theme .image-uploader-button{background:#1a67e8}.dark-theme .image-uploader-button:hover{background:#155acf}.form-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-gap:16px;gap:16px;margin-bottom:20px}.checkbox-group{display:flex;align-items:center;margin-top:20px}.checkbox-label{display:flex;align-items:center;cursor:pointer;font-weight:500;color:#374151}.dark-theme .checkbox-label{color:#d1d5db}.checkbox-label input[type=checkbox]{display:none}.checkmark{width:20px;height:20px;border:2px solid #d1d5db;border-radius:4px;margin-right:10px;position:relative;transition:all .2s}.dark-theme .checkmark{border-color:#6b7280}.checkbox-label input[type=checkbox]:checked+.checkmark{background:#2275fc;border-color:#2275fc}.checkbox-label input[type=checkbox]:checked+.checkmark:after{content:"✓";position:absolute;color:white;font-size:14px;font-weight:700;top:50%;left:50%;transform:translate(-50%,-50%)}.checkbox-label:hover .checkmark{border-color:#2275fc}.dark-theme .checkbox-label:hover .checkmark{border-color:#1a67e8}.package-details-extended{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:8px;gap:8px;margin-top:12px}.package-detail-item{display:flex;flex-direction:column;gap:4px}.package-detail-label{font-size:.75rem;color:#6b7280;font-weight:600;text-transform:uppercase}.dark-theme .package-detail-label{color:#9ca3af}.package-detail-value{font-size:.875rem;color:#374151;font-weight:500}.dark-theme .package-detail-value{color:#d1d5db}.package-type-badge{display:inline-block;padding:4px 8px;border-radius:12px;font-size:.75rem;font-weight:600;margin-left:8px}.type-paid{background:#d1fae5;color:#065f46}.type-free{background:#dbeafe;color:#1e40af}.type-trial{background:#fef3c7;color:#92400e}.dark-theme .type-paid{background:#065f46;color:#34d399}.dark-theme .type-free{background:#1e3a8a;color:#93c5fd}.dark-theme .type-trial{background:#92400e;color:#fbbf24}@media (max-width:768px){.form-grid,.package-details-extended{grid-template-columns:1fr}}.package-card-enhanced{padding:20px;background:white;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.05);border:2px solid #f3f4f6;transition:all .3s ease}.dark-theme .package-card-enhanced{background:#293444;border-color:#374151;box-shadow:0 4px 12px rgba(0,0,0,.15)}.package-card-enhanced:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.1)}.dark-theme .package-card-enhanced:hover{box-shadow:0 6px 16px rgba(0,0,0,.25)}.price-with-discount{display:flex;align-items:center;gap:8px}.original-price{text-decoration:line-through;color:#6b7280;font-size:.9em}.dark-theme .original-price{color:#9ca3af}.discount-badge{background:#ef4444;padding:2px 6px}.discount-badge,.free-trial-badge{color:white;border-radius:8px;font-size:.75em;font-weight:600}.free-trial-badge{background:#10b981;padding:2px 8px;margin-left:8px}.chapter-card,.package-card-enhanced{transition:opacity .3s ease,transform .3s ease}.chapter-card.deleting,.package-card-enhanced.deleting{opacity:0;transform:translateY(-10px)}.subject-exams-section{margin-top:32px;padding-top:32px;border-top:2px solid #f3f4f6}.dark-theme .subject-exams-section{border-top-color:#374151}.exams-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:16px;gap:16px;margin-top:16px}.exam-card{padding:20px;background:white;border-radius:12px;border:2px solid #f3f4f6;box-shadow:0 4px 12px rgba(0,0,0,.05);transition:all .3s ease}.dark-theme .exam-card{background:#293444;border-color:#374151;box-shadow:0 4px 12px rgba(0,0,0,.15)}.exam-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.1)}.dark-theme .exam-card:hover{box-shadow:0 6px 16px rgba(0,0,0,.25)}.exam-info{margin-bottom:16px}.exam-name{font-size:1.2rem;font-weight:600;margin:0 0 8px;color:#111827}.dark-theme .exam-name{color:#f3f4f6}.exam-type{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:capitalize;margin-bottom:8px}.type-free{background:#d1fae5;color:#059669}.type-paid{background:#fee2e2;color:#b91c1c}.exam-date{font-size:.875rem;color:#6b7280}.dark-theme .exam-date{color:#9ca3af}.exam-actions{display:flex;gap:8px;justify-content:flex-end}.exam-form-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.exam-form{display:flex;flex-direction:column;gap:16px}.no-exams{text-align:center;padding:40px 0;color:#6b7280;font-style:italic;grid-column:1/-1}.dark-theme .no-exams{color:#9ca3af}@media (max-width:768px){.exams-list{grid-template-columns:1fr}.exam-card{padding:16px}.exam-name{font-size:1.1rem}}.subject-details-stats-section{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px;padding:16px 0}.subject-details-stat-card{display:flex;align-items:center;gap:12px;padding:16px 24px;background:#f3f4f6;border-radius:12px;transition:all .3s ease;flex:1 1 180px}.dark-theme .subject-details-stat-card{background:#293444}.subject-details-stat-icon{font-size:1.8rem}.subject-details-stat-info{display:flex;flex-direction:column}.subject-details-stat-value{font-size:1.5rem;font-weight:700;color:#111827}.dark-theme .subject-details-stat-value{color:#f3f4f6}.subject-details-stat-label{font-size:.875rem;color:#6b7280}.dark-theme .subject-details-stat-label{color:#9ca3af}@media (max-width:768px){.subject-details-stats-section{flex-direction:column}}.chapter-exam-info{margin:8px 0;font-size:14px;color:#666}.chapter-exam-label{font-weight:600;color:#4b5563}.chapter-exam-name{color:#3b82f6;font-weight:500}.subject-create-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .subject-create-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.subject-create-header{margin-bottom:32px;text-align:center}.subject-create-title{font-size:2rem;font-weight:700;color:#111827;margin:0 0 8px}.dark-theme .subject-create-title{color:#f3f4f6}.subject-create-subtitle{color:#6b7280;font-size:1.1rem;margin:0}.dark-theme .subject-create-subtitle{color:#9ca3af}.subject-create-form{max-width:800px;margin:0 auto}.form-input,.form-textarea{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:white;transition:border-color .2s}.dark-theme .form-input,.dark-theme .form-textarea{background:#374151;border-color:#4b5563;color:#f3f4f6}.form-input:focus,.form-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.form-textarea{resize:vertical;min-height:100px}.image-info{background:#dbeafe;color:#1e40af;padding:16px;border-radius:8px;margin-bottom:24px;border:2px solid #bfdbfe}.dark-theme .image-info{background:#1e3a8a;color:#93c5fd;border-color:#1e40af}.image-info h4{margin:0 0 8px;font-size:1.1rem}.image-info p{margin:4px 0;font-size:.9rem}.image-selected{margin-top:8px;padding:8px 12px;background:#d1fae5;color:#065f46;border-radius:6px;font-size:.9rem}.dark-theme .image-selected{background:#065f46;color:#34d399}.image-filename{font-weight:600}.image-uploader{border:2px dashed #e5e7eb;border-radius:12px;padding:24px;text-align:center;transition:border-color .2s;background:white}.dark-theme .image-uploader{border-color:#4b5563;background:#374151}.image-uploader:hover{border-color:#3b82f6}.image-uploader-preview{margin-bottom:20px}.image-preview-container{position:relative;display:inline-block}.image-preview{border-radius:8px;object-fit:cover}.image-remove-btn{position:absolute;top:-8px;right:-8px;width:24px;height:24px;background:#dc2626;color:white;border:none;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center}.image-uploader-placeholder{color:#6b7280;font-size:3rem;margin-bottom:8px}.dark-theme .image-uploader-placeholder{color:#9ca3af}.image-uploader-placeholder span{display:block;font-size:1rem;margin-top:8px}.image-uploader-controls{margin-bottom:16px}.image-uploader-input{display:none}.image-uploader-label{display:inline-block;padding:12px 24px;background:#3b82f6;color:white;border-radius:8px;cursor:pointer;font-weight:600;transition:background-color .2s}.image-uploader-label:hover{background:#2563eb}.image-uploader-label:disabled{background:#9ca3af;cursor:not-allowed}.image-uploader-error{color:#dc2626;font-size:.9rem;margin-top:8px}.dark-theme .image-uploader-error{color:#fca5a5}.image-uploader-loading{display:flex;align-items:center;justify-content:center;gap:8px;color:#6b7280;font-size:.9rem;margin-top:8px}.dark-theme .image-uploader-loading{color:#9ca3af}.loading-spinner{width:16px;height:16px;border:2px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}.btn-primary,.btn-secondary{padding:12px 32px;font-size:1.1rem}.btn-primary{background:#3b82f6}.btn-primary:hover:not(:disabled){background:#2563eb}.chapters-list-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .chapters-list-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.chapters-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.dark-theme .chapters-list-header{border-bottom-color:#374151}.chapters-list-title{font-size:1.8rem;font-weight:700;color:#111827;margin:0}.dark-theme .chapters-list-title{color:#f3f4f6}.chapters-list-header-info{display:flex;align-items:center;gap:16px}.chapters-list-total{font-size:1.5rem;color:#6b7280;font-weight:500}.dark-theme .chapters-list-total{color:#9ca3af}.chapters-list-table{width:100%}.chapters-list-table-header{display:flex;gap:24px;margin-bottom:20px;padding:0 8px}.chapters-list-column{padding:12px 8px}.chapters-list-column-title{font-weight:700;color:#374151;font-size:1.2rem;text-transform:uppercase;letter-spacing:.5px}.dark-theme .chapters-list-column-title{color:#d1d5db}.chapter-column-name{width:35%}.chapter-column-exam,.chapter-column-subject{width:25%}.chapter-column-created{width:20%}.chapter-column-actions{width:10%}.chapters-list-divider{height:2px;background-color:#e5e7eb;margin-bottom:20px}.dark-theme .chapters-list-divider{background-color:#374151}.chapters-list-items{display:flex;flex-direction:column;gap:16px}.chapters-list-item{padding:24px 20px;background:#f8fafc;border-radius:16px;border:1px solid #e2e8f0;transition:all .3s ease}.chapters-list-item:hover{background:#ffffff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.12);border-color:#cbd5e1}.dark-theme .chapters-list-item{background:#293445;border-color:#475569}.dark-theme .chapters-list-item:hover{background:#334155;box-shadow:0 8px 24px rgba(0,0,0,.3);border-color:#64748b}.chapters-list-item-content{display:flex;gap:24px;align-items:center}.chapters-list-name-content{display:flex;align-items:center;gap:16px}.chapters-list-icon{width:48px;height:48px;background:linear-gradient(135deg,#26C98F,#F7AC15);border-radius:14px;display:flex;align-items:center;justify-content:center;color:white;font-size:22px;flex-shrink:0;box-shadow:0 4px 12px rgba(13,233,20,.3)}.chapters-list-details{min-width:0}.chapters-list-name{font-weight:600;color:#111827;font-size:14px;margin-bottom:4px}.dark-theme .chapters-list-name{color:#f3f4f6}.chapters-list-exam,.chapters-list-subject{display:flex;align-items:center;gap:8px;min-height:44px}.chapters-list-exam-link,.chapters-list-subject-link{display:flex;align-items:center;gap:8px;text-decoration:none;font-weight:500;transition:all .3s ease;padding:10px 14px;border-radius:10px;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid;font-size:1.2rem}.chapters-list-subject-link{color:#d97706;background:#ffedd5;border-color:#fed7aa}.chapters-list-subject-link:hover{color:#b45309;background:#fed7aa;transform:translateY(-2px);box-shadow:0 4px 12px rgba(217,119,6,.2)}.chapters-list-exam-link{color:#16a34a;background:#d1fae5;border-color:#a7f3d0}.chapters-list-exam-link:hover{color:#15803d;background:#a7f3d0;transform:translateY(-2px);box-shadow:0 4px 12px rgba(22,163,74,.2)}.dark-theme .chapters-list-subject-link{color:#fbbf24;background:rgba(217,119,6,.15);border-color:rgba(217,119,6,.3)}.dark-theme .chapters-list-subject-link:hover{color:#b45309;background:rgba(217,119,6,.25);box-shadow:0 4px 12px rgba(217,119,6,.3)}.dark-theme .chapters-list-exam-link{color:#4ade80;background:rgba(22,163,74,.15);border-color:rgba(22,163,74,.3)}.dark-theme .chapters-list-exam-link:hover{color:#15803d;background:rgba(22,163,74,.25);box-shadow:0 4px 12px rgba(22,163,74,.3)}.chapters-list-created-date{font-size:14px;color:#6b7280}.dark-theme .chapters-list-created-date{color:#9ca3af}.chapters-list-actions-content{display:flex;gap:8px}.chapters-list-action-btn{width:36px;height:36px;border-radius:8px;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s}.chapters-list-action-view{background:#dbeafe;color:#2563eb}.chapters-list-action-view:hover{background:#bfdbfe;transform:translateY(-2px)}.chapters-list-action-delete{background:#fee2e2;color:#dc2626}.chapters-list-action-delete:hover{background:#fecaca;transform:translateY(-2px)}.chapters-list-no-exam,.chapters-list-no-subject{color:#6b7280;font-size:14px;font-style:italic}.dark-theme .chapters-list-no-exam,.dark-theme .chapters-list-no-subject{color:#9ca3af}.chapters-list-error,.chapters-list-loading{text-align:center;padding:80px 0}.chapters-list-error-text,.chapters-list-loading-text{font-size:1.5rem;margin-bottom:24px}.chapters-list-error-text{color:#dc2626}.dark-theme .chapters-list-error-text{color:#ef4444}.chapters-list-retry-btn{padding:12px 24px;background-color:#3b82f6;color:white;border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;transition:all .2s}.chapters-list-retry-btn:hover{background-color:#2563eb;transform:translateY(-2px)}.chapters-list-empty{text-align:center;padding:60px 0}.chapters-list-empty-text{color:#6b7280;font-size:1.1rem;font-style:italic}.dark-theme .chapters-list-empty-text{color:#9ca3af}.chapters-list-item-deleting{opacity:.5;transform:scale(.95);transition:all .3s ease}@media (max-width:1024px){.chapters-list-container{padding:24px}.chapters-list-title{font-size:1.5rem}.chapters-list-column-title{font-size:1rem}}@media (max-width:768px){.chapters-list-container{padding:20px}.chapters-list-header,.chapters-list-item-content,.chapters-list-table-header{flex-direction:column;gap:16px;align-items:flex-start}.chapters-list-column{width:100%!important;margin-bottom:12px;padding:8px 0}.chapters-list-name-content{flex-direction:column;align-items:flex-start}.chapters-list-actions-content{justify-content:flex-start}.chapters-list-item{padding:24px 20px}.chapters-list-icon{width:40px;height:40px;font-size:18px}.chapters-list-action-btn{flex:1 1;max-width:100%}.chapters-list-divider,.chapters-list-table-header{display:none}.chapters-list-name-content{flex-direction:row;align-items:center;gap:12px}.chapters-list-item-content{gap:1px}.chapters-list-name-content{gap:8px}.chapters-list-items{gap:12px}.chapters-list-item{padding:16px}}@media (max-width:480px){.chapters-list-container{padding:16px}.chapters-list-title{font-size:1.3rem}.chapters-list-total{font-size:1rem}.chapters-list-action-btn{width:32px;height:32px;font-size:14px}.chapters-list-created-date{display:none}}.chapter-create-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .chapter-create-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.chapter-create-header{margin-bottom:32px;text-align:center}.chapter-create-title{font-size:2rem;font-weight:700;color:#111827;margin:0 0 8px}.dark-theme .chapter-create-title{color:#f3f4f6}.chapter-create-subtitle{color:#6b7280;font-size:1.1rem;margin:0}.dark-theme .chapter-create-subtitle{color:#9ca3af}.chapter-create-form{max-width:800px;margin:0 auto}.subject-preview{background:white;padding:20px;border-radius:8px;border:2px solid #e5e7eb}.dark-theme .subject-preview{background:#374151;border-color:#4b5563}.subject-preview-header{justify-content:between;margin-bottom:12px;gap:12px}.subject-preview-name{margin:0}.subject-preview-stats{gap:16px}@media (max-width:768px){.chapter-create-container{padding:24px}.chapter-create-title{font-size:1.8rem}.form-section{padding:20px}.subject-preview-header{flex-direction:column;align-items:flex-start}.subject-preview-stats{flex-direction:column;gap:8px}.form-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%}}@media (max-width:480px){.chapter-create-container{padding:20px}.chapter-create-title{font-size:1.5rem}.form-section{padding:16px}}.subject-preview-header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.subject-preview-image{width:60px;height:60px;border-radius:12px;background:#f3f4f6;flex-shrink:0}.dark-theme .subject-preview-image{background:#374151}.subject-preview-image img{width:100%;height:100%;object-fit:cover}.subject-preview-info{flex:1 1;min-width:0}.subject-preview-name{font-size:1.2rem;font-weight:600;color:#111827;margin:0 0 4px;line-height:1.3}.dark-theme .subject-preview-name{color:#f3f4f6}.subject-preview-code{background:#e5e7eb;color:#374151;padding:4px 8px;border-radius:6px;font-size:.8rem;font-weight:600;display:inline-block}.dark-theme .subject-preview-code{background:#4b5563;color:#d1d5db}.subject-preview-description{color:#6b7280;margin-bottom:16px;line-height:1.5;font-size:.9rem}.dark-theme .subject-preview-description{color:#9ca3af}.subject-preview-stats{display:flex;gap:20px}.stat-item{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:.9rem;padding:8px 12px;background:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.dark-theme .stat-item{background:#374151;color:#9ca3af;border-color:#4b5563}.stat-item i{font-size:1rem;color:#2275fc}.dark-theme .stat-item i{color:#3b82f6}@media (max-width:768px){.subject-preview-header{flex-direction:column;text-align:center;gap:12px}.subject-preview-image{width:80px;height:80px}.subject-preview-stats{flex-direction:column;gap:8px}.stat-item{justify-content:center}}.subject-preview-image{position:relative;overflow:hidden}.subject-preview-image:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);animation:loading 1.5s infinite}@keyframes loading{0%{left:-100%}to{left:100%}}.subject-preview-image.loaded:before{display:none}.subject-preview-image:hover{transform:scale(1.05);transition:transform .3s ease}.subject-preview-image:focus{outline:2px solid #2275fc;outline-offset:2px}.dark-theme .subject-preview-image:focus{outline-color:#3b82f6}.chapter-details-container{max-width:1500px;padding:32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .chapter-details-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.chapter-details-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.dark-theme .chapter-details-header{border-bottom-color:#374151}.chapter-details-title-section h2.chapter-details-title{font-size:2rem;font-weight:700;color:#111827;margin:0 0 8px}.dark-theme .chapter-details-title-section h2.chapter-details-title{color:#f3f4f6}.chapter-details-id{color:#6b7280;font-size:1.1rem}.dark-theme .chapter-details-id{color:#9ca3af}.chapter-details-actions{display:flex;gap:12px;align-items:center}.chapter-details-card{display:flex;gap:32px;margin-bottom:32px;padding:24px;background:#fafafa;border-radius:12px}.dark-theme .chapter-details-card{background:#293444}.chapter-details-icon-section{flex-shrink:0}.chapter-details-icon.large{width:80px;height:80px;background:linear-gradient(135deg,#26C98F,#F7AC15);border-radius:16px;display:flex;align-items:center;justify-content:center;color:white;font-size:32px;box-shadow:0 4px 12px rgba(13,233,20,.3)}.chapter-details-info-section{flex:1 1}.chapter-details-name{font-size:1.8rem;font-weight:700;color:#111827;margin:0 0 16px}.dark-theme .chapter-details-name{color:#f3f4f6}.chapter-details-meta{display:flex;flex-direction:column;gap:8px}.chapter-details-meta-item{display:flex;align-items:center;gap:8px}.chapter-details-meta-label{font-weight:600;color:#374151;min-width:120px}.dark-theme .chapter-details-meta-label{color:#d1d5db}.chapter-details-meta-value{color:#6b7280}.dark-theme .chapter-details-meta-value{color:#9ca3af}.chapter-details-related-info{display:grid;grid-template-columns:1fr 1fr;grid-gap:24px;gap:24px;margin-bottom:32px}.chapter-details-info-section-card{background:#fafafa;padding:20px;border-radius:12px;border:2px solid #f3f4f6}.dark-theme .chapter-details-info-section-card{background:#293444;border-color:#374151}.chapter-details-info-section-title{font-size:1.3rem;font-weight:600;color:#111827;margin:0 0 16px}.dark-theme .chapter-details-info-section-title{color:#f3f4f6}.chapter-details-info-card{background:white;padding:16px;border-radius:8px;border:2px solid #e5e7eb;min-height:150px;display:flex;flex-direction:column}.dark-theme .chapter-details-info-card{background:#374151;border-color:#4b5563}.chapter-details-info-card-header{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:#10b981}.dark-theme .chapter-details-info-card-header{color:#34d399}.chapter-details-info-card-header h4{margin:0;font-size:1.1rem;font-weight:600}.chapter-details-info-card-content{color:#374151;flex-grow:1;display:flex;align-items:center;justify-content:center}.dark-theme .chapter-details-info-card-content{color:#d1d5db}.chapter-details-no-info{color:#6b7280;font-style:italic}.dark-theme .chapter-details-no-info{color:#9ca3af}.chapter-details-exam-link,.chapter-details-subject-link{display:inline-block;padding:12px 20px;background:#f8fafc;border:2px solid #e2e8f0;border-radius:8px;color:#2275fc;text-decoration:none;font-weight:600;transition:all .2s;width:100%;text-align:center}.chapter-details-exam-link:hover,.chapter-details-subject-link:hover{background:#e6f0ff;border-color:#2275fc;transform:translateY(-2px);box-shadow:0 4px 12px rgba(34,117,252,.15)}.dark-theme .chapter-details-exam-link,.dark-theme .chapter-details-subject-link{background:#374151;border-color:#4b5563;color:#3b82f6}.dark-theme .chapter-details-exam-link:hover,.dark-theme .chapter-details-subject-link:hover{background:#1e293b;border-color:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,.2)}.chapter-details-edit-form{display:flex;flex-direction:column;gap:16px}.chapter-details-form-group{display:flex;flex-direction:column;gap:8px}.chapter-details-form-group label{font-weight:600;color:#374151}.dark-theme .chapter-details-form-group label{color:#d1d5db}.chapter-details-form-group input,.chapter-details-form-group select{padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:white}.dark-theme .chapter-details-form-group input,.dark-theme .chapter-details-form-group select{background:#374151;border-color:#4b5563;color:#f3f4f6}.chapter-details-form-actions{display:flex;gap:12px;margin-top:16px}.chapter-details-back-btn,.chapter-details-btn-primary,.chapter-details-btn-secondary,.chapter-details-edit-btn,.chapter-details-retry-btn{padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;text-decoration:none;display:inline-block;text-align:center}.chapter-details-btn-primary{background:#10b981;color:white}.chapter-details-btn-primary:hover{background:#059669;transform:translateY(-2px)}.chapter-details-btn-secondary{background:#e5e7eb;color:#374151}.chapter-details-btn-secondary:hover{background:#d1d5db;transform:translateY(-2px)}.chapter-details-edit-btn{background:#fef3c7;color:#d97706}.chapter-details-edit-btn:hover{background:#fde68a;transform:translateY(-2px)}.chapter-details-back-btn{background:#e5e7eb;color:#374151}.chapter-details-back-btn:hover{background:#d1d5db;transform:translateY(-2px)}.chapter-details-retry-btn{background:#3b82f6;color:white;margin-right:12px}.chapter-details-retry-btn:hover{background:#2563eb;transform:translateY(-2px)}.chapter-details-error,.chapter-details-loading{text-align:center;padding:80px 0}.chapter-details-error-text,.chapter-details-loading-text{font-size:1.5rem;margin-bottom:24px}.chapter-details-error-text{color:#dc2626}.dark-theme .chapter-details-error-text{color:#ef4444}@media (max-width:768px){.chapter-details-container{padding:24px}.chapter-details-header{flex-direction:column;gap:16px;align-items:flex-start}.chapter-details-card{flex-direction:column;text-align:center}.chapter-details-icon.large{margin:0 auto}.chapter-details-related-info{grid-template-columns:1fr}}@media (max-width:480px){.chapter-details-container{padding:20px}.chapter-details-name,.chapter-details-title-section h2.chapter-details-title{font-size:1.5rem}.chapter-details-form-actions{flex-direction:column}.chapter-details-btn-primary,.chapter-details-btn-secondary{width:100%}}.exams-list-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .exams-list-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.exams-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;padding-bottom:16px;border-bottom:2px solid #f3f4f6}.dark-theme .exams-list-header{border-bottom-color:#374151}.exams-list-title{font-size:1.8rem;font-weight:700;color:#111827;margin:0}.dark-theme .exams-list-title{color:#f3f4f6}.exams-list-header-info{display:flex;align-items:center;gap:16px}.exams-list-total{font-size:1.5rem;color:#6b7280;font-weight:500}.dark-theme .exams-list-total{color:#9ca3af}.exams-list-table{width:100%}.exams-list-table-header{display:flex;gap:24px;margin-bottom:20px;padding:0 8px}.exams-list-column{padding:12px 8px}.exams-list-column-title{font-weight:700;color:#374151;font-size:1.2rem;text-transform:uppercase;letter-spacing:.5px}.dark-theme .exams-list-column-title{color:#d1d5db}.exams-list-column-name{width:25%}.exams-list-column-subject{width:20%}.exams-list-column-type{width:15%}.exams-list-column-created{width:25%}.exams-list-column-actions{width:15%}.exams-list-divider{height:2px;background-color:#e5e7eb;margin-bottom:20px}.dark-theme .exams-list-divider{background-color:#374151}.exams-list-items{display:flex;flex-direction:column;gap:16px}.exams-list-item{padding:24px 20px;background:#f8fafc;border-radius:16px;border:1px solid #e2e8f0;transition:all .3s ease}.exams-list-item:hover{background:#ffffff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.12);border-color:#cbd5e1}.dark-theme .exams-list-item{background:#293445;border-color:#475569}.dark-theme .exams-list-item:hover{background:#334155;box-shadow:0 8px 24px rgba(0,0,0,.3);border-color:#64748b}.exams-list-item-content{display:flex;gap:24px;align-items:center}.exams-list-name-content{display:flex;align-items:center;gap:16px;min-width:0}.exams-list-icon{width:48px;height:48px;background:linear-gradient(135deg,#f59e0b,#fbbf24);border-radius:14px;display:flex;align-items:center;justify-content:center;color:white;font-size:22px;flex-shrink:0;box-shadow:0 4px 12px rgba(245,158,11,.3)}.exams-list-details{min-width:0}.exams-list-name{flex:1 1;font-weight:600;color:#111827;font-size:14px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dark-theme .exams-list-name{color:#f3f4f6}.exams-list-subject,.exams-list-subject-link{display:flex;align-items:center;gap:8px}.exams-list-subject-link{color:#d97706;text-decoration:none;font-weight:500;transition:all .3s ease;padding:10px 14px;border-radius:10px;background:#ffedd5;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #fed7aa;font-size:1.2rem}.exams-list-subject-link:hover{color:#b45309;background:#fed7aa;transform:translateY(-2px);box-shadow:0 4px 12px rgba(217,119,6,.2);text-decoration:none}.dark-theme .exams-list-subject-link{color:#fbbf24;background:rgba(217,119,6,.15);border-color:rgba(217,119,6,.3)}.dark-theme .exams-list-subject-link:hover{color:#b45309;background:rgba(217,119,6,.25);box-shadow:0 4px 12px rgba(217,119,6,.3)}.exams-list-no-subject{color:#6b7280;font-size:14px;font-style:italic}.dark-theme .exams-list-no-subject{color:#9ca3af}.exams-list-type-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:600;line-height:1.2}.exams-list-type-bg-paid{background-color:#d1fae5}.exams-list-type-bg-free{background-color:#dbeafe}.exams-list-type-bg-trial{background-color:#fef3c7}.exams-list-type-paid{color:#065f46}.exams-list-type-free{color:#1e40af}.exams-list-type-trial{color:#92400e}.dark-theme .exams-list-type-bg-paid{background-color:#065f46}.dark-theme .exams-list-type-bg-free{background-color:#1e3a8a}.dark-theme .exams-list-type-bg-trial{background-color:#92400e}.dark-theme .exams-list-type-paid{color:#34d399}.dark-theme .exams-list-type-free{color:#93c5fd}.dark-theme .exams-list-type-trial{color:#fbbf24}.exams-list-created-date{font-size:14px;color:#6b7280}.dark-theme .exams-list-created-date{color:#9ca3af}.exams-list-actions-content{display:flex;gap:8px}.exams-list-action-btn{width:36px;height:36px;border-radius:8px;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:16px;transition:all .2s}.exams-list-action-view{background:#dbeafe;color:#2563eb}.exams-list-action-view:hover{background:#bfdbfe;transform:translateY(-2px)}.exams-list-action-delete{background:#fee2e2;color:#dc2626}.exams-list-action-delete:hover{background:#fecaca;transform:translateY(-2px)}.exams-list-error,.exams-list-loading{text-align:center;padding:80px 0}.exams-list-error-text,.exams-list-loading-text{font-size:1.5rem;margin-bottom:24px}.exams-list-error-text{color:#dc2626}.dark-theme .exams-list-error-text{color:#ef4444}.exams-list-retry-btn{padding:12px 24px;background-color:#3b82f6;color:white;border:none;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;transition:all .2s}.exams-list-retry-btn:hover{background-color:#2563eb;transform:translateY(-2px)}.exams-list-empty{text-align:center;padding:60px 0}.exams-list-empty-text{color:#6b7280;font-size:1.1rem;font-style:italic}.dark-theme .exams-list-empty-text{color:#9ca3af}.exams-list-item-deleting{opacity:.5;transform:scale(.95);transition:all .3s ease}.exams-list-icon-credit-card:before{content:"💳"}.exams-list-icon-gift:before{content:"🎁"}.exams-list-icon-clock:before{content:"⏱️"}@media (max-width:1024px){.exams-list-container{padding:24px}.exams-list-title{font-size:1.5rem}.exams-list-column-title{font-size:1rem}}@media (max-width:768px){.exams-list-container{padding:20px}.exams-list-header,.exams-list-item-content,.exams-list-table-header{flex-direction:column;gap:16px;align-items:flex-start}.exams-list-column{width:100%!important;margin-bottom:12px;padding:8px 0}.exams-list-name-content{flex-direction:column;align-items:flex-start}.exams-list-actions-content{justify-content:flex-start}.exams-list-item{padding:24px 20px}.exams-list-icon{width:40px;height:40px;font-size:18px}.exams-list-action-btn{flex:1 1;max-width:100%}.exams-list-divider,.exams-list-table-header{display:none}.exams-list-name-content{flex-direction:row;align-items:center;gap:12px}.exams-list-item-content{gap:1px}.exams-list-name-content{gap:8px}.exams-list-items{gap:12px}.exams-list-item{padding:16px}}@media (max-width:480px){.exams-list-container{padding:16px}.exams-list-title{font-size:1.3rem}.exams-list-total{font-size:1rem}.exams-list-action-btn{width:32px;height:32px;font-size:14px}.exams-list-created-date{display:none}}.exam-create-container{max-width:1500px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#ffffff;border-radius:20px;padding:32px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin:0 auto 32px}.dark-theme .exam-create-container{background:#1e293b;box-shadow:0 8px 24px rgba(0,0,0,.2)}.exam-create-header{margin-bottom:32px;text-align:center}.exam-create-title{font-size:2rem;font-weight:700;color:#111827;margin:0 0 8px}.dark-theme .exam-create-title{color:#f3f4f6}.exam-create-subtitle{color:#6b7280;font-size:1.1rem;margin:0}.dark-theme .exam-create-subtitle{color:#9ca3af}.exam-create-form{max-width:800px;margin:0 auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:32px;gap:32px;margin-bottom:32px}@media (max-width:768px){.form-grid{grid-template-columns:1fr}}.form-section{background:#fafafa;padding:24px;border-radius:12px;border:2px solid #f3f4f6}.dark-theme .form-section{background:#293444;border-color:#374151}.form-section-title{font-size:1.3rem;font-weight:600;color:#111827;margin:0 0 20px;padding-bottom:12px;border-bottom:2px solid #e5e7eb}.dark-theme .form-section-title{color:#f3f4f6;border-bottom-color:#374151}.form-group{margin-bottom:20px}.form-label{display:block;font-weight:600;color:#374151;margin-bottom:8px;font-size:1rem}.dark-theme .form-label{color:#d1d5db}.form-input,.form-select{width:100%;padding:12px 16px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:white;transition:border-color .2s}.dark-theme .form-input,.dark-theme .form-select{background:#374151;border-color:#4b5563;color:#f3f4f6}.form-input:focus,.form-select:focus{outline:none;border-color:#2275fc;box-shadow:0 0 0 3px rgba(59,130,246,.1)}.form-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");background-position:right 8px center;background-repeat:no-repeat;background-size:16px;padding-right:40px}.select-loading{display:flex;align-items:center;gap:8px;margin-top:8px;color:#6b7280;font-size:.9rem}.dark-theme .select-loading{color:#9ca3af}.select-loading .icon-loader{animation:spin 1s linear infinite}.chapter-preview{background:white;padding:20px;border-radius:8px;border:2px solid #e5e7eb}.dark-theme .chapter-preview{background:#374151;border-color:#4b5563}.chapter-preview-header{display:flex;align-items:center;gap:16px;margin-bottom:16px}.chapter-icon{width:48px;height:48px;background:linear-gradient(135deg,#8b5cf6,#a855f7);border-radius:12px;display:flex;align-items:center;justify-content:center;color:white;font-size:20px;flex-shrink:0}.chapter-preview-info{flex:1 1;min-width:0}.chapter-preview-name{font-size:1.2rem;font-weight:600;color:#111827;margin:0 0 4px;line-height:1.3}.dark-theme .chapter-preview-name{color:#f3f4f6}.chapter-preview-subject{background:#e5e7eb;color:#374151;padding:4px 8px;border-radius:6px;font-size:.8rem;font-weight:600;display:inline-block}.dark-theme .chapter-preview-subject{background:#4b5563;color:#d1d5db}.chapter-preview-meta{display:flex;gap:16px}.meta-item{display:flex;align-items:center;gap:6px;color:#6b7280;font-size:.9rem}.dark-theme .meta-item{color:#9ca3af}.meta-item i{font-size:1rem;color:#2275fc}.dark-theme .meta-item i{color:#3b82f6}.exam-type-preview{background:white;padding:20px;border-radius:8px;border:2px solid #e5e7eb;text-align:center}.dark-theme .exam-type-preview{background:#374151;border-color:#4b5563}.exam-type-description{color:#6b7280;margin-top:12px;font-size:.9rem;line-height:1.5}.dark-theme .exam-type-description{color:#9ca3af}.exam-type-badge{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:12px;font-size:1.1rem;font-weight:600;line-height:1.2}.exam-type-bg-paid{background-color:#d1fae5}.exam-type-bg-free{background-color:#dbeafe}.exam-type-bg-trial{background-color:#fef3c7}.exam-type-paid{color:#065f46}.exam-type-free{color:#1e40af}.exam-type-trial{color:#92400e}.dark-theme .exam-type-bg-paid{background-color:#065f46}.dark-theme .exam-type-bg-free{background-color:#1e3a8a}.dark-theme .exam-type-bg-trial{background-color:#92400e}.dark-theme .exam-type-paid{color:#34d399}.dark-theme .exam-type-free{color:#93c5fd}.dark-theme .exam-type-trial{color:#fbbf24}.form-error{background:#fee2e2;color:#dc2626;padding:16px;border-radius:8px;margin-bottom:24px;border:2px solid #fecaca}.dark-theme .form-error{background:#7f1d1d;color:#fca5a5;border-color:#991b1b}.form-actions{display:flex;gap:16px;justify-content:center;padding-top:24px;border-top:2px solid #f3f4f6}.dark-theme .form-actions{border-top-color:#374151}.btn-primary,.btn-secondary{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;min-width:120px;justify-content:center}.btn-primary{background:#2275fc;color:white}.btn-primary:hover:not(:disabled){background:#1a67e8;transform:translateY(-2px)}.btn-primary:disabled{background:#9ca3af;cursor:not-allowed;transform:none}.btn-secondary{background:#e5e7eb;color:#374151}.btn-secondary:hover:not(:disabled){background:#d1d5db;transform:translateY(-2px)}.dark-theme .btn-secondary{background:#4b5563;color:#d1d5db}.dark-theme .btn-secondary:hover:not(:disabled){background:#6b7280}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}@media (max-width:768px){.exam-create-container{padding:24px}.exam-create-title{font-size:1.8rem}.form-section{padding:20px}.chapter-preview-header{flex-direction:column;text-align:center;gap:12px}.chapter-preview-meta{flex-direction:column;gap:8px}.form-actions{flex-direction:column}.btn-primary,.btn-secondary{width:100%}}@media (max-width:480px){.exam-create-container{padding:20px}.exam-create-title{font-size:1.5rem}.form-section{padding:16px}.exam-type-badge{padding:10px 16px;font-size:12px}}