.chamelearn-container { font-family: 'Segoe UI', Tahoma, sans-serif; direction: rtl; max-width: 1200px; margin: 0 auto; padding: 20px; background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.floating-interface { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; width: 95%; max-width: 1200px; max-height: 90vh; overflow: auto; }
.close-floating-interface { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: #64748b; z-index: 10; }
header { text-align: center; margin-bottom: 30px; }
header h1 { color: #0f172a; margin-bottom: 8px; font-size: 28px; }
#sm-sub { color: #64748b; margin: 0; font-size: 18px; }
.composer { background: #f8fafc; border-radius: 16px; padding: 20px; margin-bottom: 30px; border: 1px solid #e2e8f0; }
#sm-text { width: 100%; height: 180px; padding: 16px; border: 2px solid #cbd5e1; border-radius: 12px; font-family: 'Segoe UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.6; resize: vertical; }
#sm-text:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); outline: none; }
.file-drop-area { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 30px; text-align: center; margin: 20px 0; background: #f8fafc; cursor: pointer; transition: all 0.3s ease; position: relative; }
.file-drop-area:hover, .file-drop-area.drag-over { border-color: #667eea; background: #eff6ff; }
.file-icon { font-size: 50px; margin-bottom: 15px; color: #667eea; }
.or-text { margin: 15px 0; color: #94a3b8; font-weight: 500; }
.file-upload-btn { display: inline-block; width: 50px; height: 50px; line-height: 46px; border: 2px solid #667eea; border-radius: 50%; color: #667eea; font-size: 30px; font-weight: bold; cursor: pointer; background: white; transition: all 0.2s; position: relative; z-index: 1; }
.file-upload-btn:hover { transform: scale(1.1); background: #667eea; color: white; }
#upload-status { margin-top: 10px; color: #10b981; font-weight: 500; }
.row { display: flex; align-items: center; gap: 20px; margin-top: 15px; }
.btn { padding: 10px 20px; border: none; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn.ghost { background: #e2e8f0; color: #475569; }
.status-bar { flex: 1; color: #94a3b8; font-weight: 500; }
#cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.flip-card { perspective: 1000px; cursor: default; transition: all 0.3s ease; }
.flip-card:hover { transform: translateY(-5px); }
.card-inner { position: relative; width: 100%; height: 100%; text-align: center; transform-style: preserve-3d; }
.card-front { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border-radius: 16px; padding: 25px 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); border: 1px solid #e2e8f0; }
.card-title { color: #0f172a; font-size: 20px; margin-bottom: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; justify-content: center; }
.card-snippet { min-height: 100px; background: white; border-radius: 12px; padding: 15px; margin-bottom: 20px; border: 1px solid #e2e8f0; text-align: right; font-size: 15px; line-height: 1.6; color: #4a5568; overflow: hidden; }
.card-actions { display: flex; flex-direction: column; gap: 12px; }
.hidden-section { opacity: 0.6; transform: scale(0.97); }
.section-controls { position: absolute; top: 10px; left: 10px; display: flex; gap: 8px; z-index: 10; }
.visibility-toggle, .edit-section-btn { width: 32px; height: 32px; border-radius: 50%; border: none; font-size: 18px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: all 0.2s; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.modal-content { background: white; border-radius: 20px; width: 90%; max-width: 800px; max-height: 90vh; overflow: auto; }
.modal-header { padding: 20px; border-bottom: 2px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.modal-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #64748b; }
.modal-body { padding: 25px; }
.video-wrapper { position: relative; display: inline-block; width: 100%; max-width: 100%; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes slideInUp { from { transform: translate(-50%, 100px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
