:root { --bg: #0f0f0f; --surface: #1e1e1e; --primary: #7C4DFF; --text: #fff; --highlight: #2a2a2a; --panel-bg: #151515; --static-color: #A020F0; --accent-orange: #FF7043; --danger-red: #ff5252; --chip-bg: #2c2c2c; --input-bg: #2a2a2a; } * { box-sizing: border-box; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; } body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Vazirmatn'; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 50px;} /* --- صفحه خانه (پروژه‌ها) --- */ #homeScreen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #121212; z-index: 5000; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; } .home-header { font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; text-align: right; color: #eee; } .projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 80px; } .project-card { background: #252525; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: 0.2s; cursor: pointer; aspect-ratio: 1 / 1.1; display: flex; flex-direction: column; } .project-card:active { transform: scale(0.97); } .card-thumb { width: 100%; height: 70%; background: #333; background-size: cover; background-position: center; position: relative; } .card-overlay { position: absolute; bottom: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); } .card-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; color: #fff; font-weight: bold; } .card-menu { position: absolute; top: 10px; left: 10px; width: 35px; height: 35px; background: rgba(0,0,0,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; backdrop-filter: blur(4px); transition: 0.2s; z-index: 10; } .card-menu:active { background: var(--primary); transform: scale(0.9); } .card-details { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; } .card-title { font-weight: bold; font-size: 1.1rem; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .card-date { font-size: 0.75rem; color: #888; } #noProjectsPlaceholder { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #666; position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: 100%; } .placeholder-icon { width: 100px; height: 100px; border: 3px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; animation: pulse 2.5s infinite ease-in-out; background: rgba(124, 77, 255, 0.05); } .placeholder-text { font-size: 1.1rem; font-weight: bold; color: #ddd; } @keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(124, 77, 255, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(124, 77, 255, 0); } } .fab-add { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); background: var(--accent-orange); color: #fff; padding: 15px 40px; border-radius: 30px; font-size: 1.1rem; font-weight: bold; box-shadow: 0 5px 20px rgba(255, 112, 67, 0.4); border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; z-index: 5001; transition: 0.2s; font-family: inherit; width: 90%; max-width: 400px; justify-content: center; } .fab-add:active { transform: translateX(-50%) scale(0.95); } .action-sheet-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 6000; display: none; align-items: flex-end; justify-content: center; animation: fadeInOverlay 0.2s forwards; padding-bottom: 20px; } .action-sheet { background: #222; width: 90%; max-width: 500px; border-radius: 20px; padding: 25px; display: flex; flex-direction: column; gap: 15px; transform: translateY(100%); animation: slideUp 0.3s forwards; } .sheet-title-main { color: #888; font-size: 0.9rem; text-align: center; margin-bottom: 10px; } .sheet-btn { background: #333; color: #fff; border: none; padding: 15px; border-radius: 15px; font-size: 1rem; font-family: inherit; display: flex; align-items: center; gap: 15px; cursor: pointer; } .sheet-btn:active { background: #444; } .sheet-btn.delete-btn { color: #ff5252; } .sheet-btn i { width: 25px; text-align: center; } .input-field { width: 100%; background: #111; border: 1px solid #444; color: #fff; padding: 12px; border-radius: 10px; font-family: inherit; font-size: 1rem; margin-bottom: 20px; text-align: center; } @keyframes slideUp { to { transform: translateY(0); } } @keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } } .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 7000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity: 0.3s; } .modal-overlay.show { opacity: 1; } .modal-box { background: #222; border: 1px solid #444; width: 90%; max-width: 350px; border-radius: 20px; padding: 25px; text-align: center; transform: scale(0.8); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 10px 40px rgba(0,0,0,0.5); } .modal-overlay.show .modal-box { transform: scale(1); } .modal-icon { font-size: 3rem; color: var(--primary); margin-bottom: 15px; } .modal-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; color: #fff; } .modal-desc { font-size: 0.9rem; color: #aaa; margin-bottom: 25px; line-height: 1.5; } .modal-actions { display: flex; gap: 10px; justify-content: center; } .modal-btn { flex: 1; padding: 12px; border-radius: 12px; border: none; font-family: inherit; font-weight: bold; cursor: pointer; transition: 0.2s; } .btn-confirm { background: var(--primary); color: #fff; } .btn-cancel { background: #333; color: #fff; } .btn-confirm-action.split { background: #00C853; } .btn-confirm-action.delete { background: #d32f2f; } #editorScreen { display: none; width: 100%; flex-direction: column; min-height: 100vh; } .top-bar { position: sticky; top: 0; height: 60px; background: rgba(30,30,30,0.95); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 100; border-bottom: 1px solid #333; box-shadow: 0 4px 10px rgba(0,0,0,0.3); } .btn-home { background: transparent; color: #ccc; border: none; font-size: 1.2rem; cursor: pointer; padding: 10px; } #workspace { width: 100%; display: flex; justify-content: center; background: #000; padding: 20px 0; min-height: 300px; flex-shrink: 0; } #scaler { transform-origin: top center; transition: transform 0.1s ease-out; } #videoContainer { position: relative; background: #000; overflow: hidden; cursor: pointer; box-shadow: 0 0 30px rgba(124, 77, 255, 0.1); border-radius: 8px;} video { width: 100%; height: 100%; object-fit: contain; display: block; } #playOverlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgba(0,0,0,0.2); z-index: 10; transition: opacity 0.2s; } #playOverlay.playing { opacity: 0; pointer-events: none; } #playOverlay i { font-size: 4rem; color: rgba(255,255,255,0.8); filter: drop-shadow(0 0 5px rgba(0,0,0,0.8)); pointer-events: none; } #subtitleLayer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; justify-content: center; z-index: 20; } #activeText { position: absolute; white-space: pre; pointer-events: auto; cursor: move; padding: 10px 20px; line-height: 1.5; font-weight: bold; transition: background-color 0.2s, text-shadow 0.2s, -webkit-text-stroke 0.2s; transform-origin: center center; text-align: center; left: 50%; transform: translateX(-50%); } .word-active { background-color: var(--static-color); color: #fff; border-radius: 8px; padding: 0 8px; margin: 0 2px; box-shadow: 0 2px 8px rgba(160, 32, 240, 0.5); -webkit-box-decoration-break: clone; box-decoration-break: clone; } .word-highlight { color: #00D7FF !important; transform: scale(1.2); display:inline-block; text-shadow: 0 0 10px rgba(0, 215, 255, 0.5); } .magic-bar { padding: 15px 20px 5px 20px; background: var(--bg); display: flex; justify-content: center; position: sticky; top: 60px; z-index: 95; } .btn-ai-magic { background: linear-gradient(90deg, #FF0080 0%, #7928CA 50%, #FF0080 100%); background-size: 200% auto; color: white; border: none; width: 100%; max-width: 600px; padding: 12px 20px; border-radius: 16px; font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; box-shadow: 0 4px 20px rgba(121, 40, 202, 0.5); transition: all 0.3s; animation: gradientMove 3s linear infinite; font-family: 'Vazirmatn', sans-serif; } .btn-ai-magic:active { transform: scale(0.98); } @keyframes gradientMove { to { background-position: 200% center; } } .controls-bar { display: flex; justify-content: center; gap: 10px; padding: 10px 10px; background: var(--bg); border-bottom: 1px solid #222; position: sticky; top: 115px; z-index: 90; flex-wrap: wrap; } .tool-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--surface); border: 1px solid #333; color: #aaa; cursor: pointer; transition: 0.2s; padding: 8px 10px; border-radius: 12px; min-width: 70px; flex: 1; max-width: 100px; } .tool-btn i { font-size: 1.2rem; margin-bottom: 2px; } .tool-btn span { font-size: 0.75rem; font-weight: bold; } .tool-btn:hover { color: #fff; background: #2a2a2a; } .tool-btn.active-tool { color: #fff; background: var(--primary); border-color: var(--primary); } #toolsContainer { width: 100%; background: var(--panel-bg); overflow: hidden; min-height: 0; transition: none; border-bottom: 1px solid #333; } .tool-section { display: none; padding: 20px; animation: fadeIn 0.3s ease; max-width: 800px; margin: 0 auto; } .tool-section.active-section { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .btn-exp { background: var(--primary); color: #fff; border: none; padding: 10px 25px; border-radius: 12px; font-weight: bold; cursor: pointer; transition: 0.2s; font-family: inherit; } .btn-magic-action { background: linear-gradient(135deg, #FF4081, #7C4DFF); width: 100%; border: none; padding: 12px; border-radius: 12px; color: white; font-weight: bold; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; } .row { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; color: #ccc; font-size: 0.9rem; } input[type=range] { width: 100%; accent-color: var(--primary); height: 6px; cursor: pointer; border-radius:3px; } textarea { width: 100%; background: #222; color: #fff; border: 1px solid #444; padding: 15px; border-radius: 12px; font-family: inherit; font-size: 1rem; margin-bottom: 15px; resize: vertical; min-height: 80px; } .style-grid { display: flex; flex-direction: column; gap: 15px; width: 100%; } .style-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .style-card { background: #333; border: 2px solid transparent; border-radius: 15px; padding: 15px 20px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 110px; width: 100%; position: relative; transition: all 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); } .style-grid-2col .style-card { min-height: 100px; height: auto; gap: 8px; padding: 10px; } .style-card:active { transform: scale(0.98); } .style-card.selected { border-color: var(--primary); background: #2a2a2a; } .style-card.selected::after { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 10px; left: 10px; font-size: 0.8rem; color: #fff; background: var(--primary); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.3); } .card-info { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); } .card-title-style { font-weight: bold; font-size: 1rem; color: #fff; white-space: nowrap; } .card-desc { color: #aaa; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .anim-box { font-family: 'Lalezar'; font-size: 1.3rem; direction: rtl; display: flex; gap: 5px; margin-bottom: 5px; } .anim-word { color: white; transition: 0.2s; padding: 0 3px; border-radius: 4px;} .anim-word.active { color: #fff; background-color: #A020F0; transform: scale(1.05); padding: 0 6px; } .static-anim.active { background-color: var(--static-color) !important; color: #fff; } .card-settings { position: absolute; bottom: 10px; left: 10px; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; transition: 0.2s; z-index: 5; border: 1px solid rgba(255,255,255,0.1); } .mode-btn { flex: 1; padding: 12px; border-radius: 8px; background: #333; color: #aaa; border: 2px solid transparent; cursor: pointer; } .mode-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); } .font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .font-btn { padding: 15px; background: #333; border-radius: 8px; cursor: pointer; border: 2px solid transparent; position: relative; color: #fff; } .font-btn.ticked { border-color: var(--primary); } .font-btn.ticked::after { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 10px; left: 10px; color: var(--primary); } .custom-style-container { width: 100%; background: linear-gradient(90deg, #252525, #1e1e1e); border: 1px solid #444; border-right: 6px solid var(--primary); border-radius: 12px; margin-bottom: 25px; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s; max-height: 60px; cursor: pointer; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.2); } .custom-style-container.open { max-height: 600px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-color: #666; } .custom-header { height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; font-family: 'Lalezar'; font-size: 1.2rem; color: #fff; } .custom-header-title { display: flex; align-items: center; gap: 10px; } .custom-header-title i { color: var(--primary); font-size: 1.4rem; } .toggle-icon { transition: transform 0.3s; font-size: 0.9rem; color: #888; } .custom-style-container.open .toggle-icon { transform: rotate(180deg); color: #fff; } .custom-content { padding: 20px; opacity: 0; transition: opacity 0.3s ease 0.1s; border-top: 1px solid #333; background: #202020; } .custom-style-container.open .custom-content { opacity: 1; } /* --- استایل‌های جدید بخش متن (Text Editor UI) --- */ .text-editor-ui { display: flex; flex-direction: column; width: 100%; height: 100%; background-color: var(--surface); padding-bottom: 10px; } /* Toolbar */ .toolbar-area { height: 60px; display: flex; align-items: center; justify-content: center; gap: 20px; opacity: 0; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none; margin-top: 10px; } .toolbar-area.show { opacity: 1; transform: translateY(0); pointer-events: all; } .tool-circle { width: 45px; height: 45px; border-radius: 50%; background: #252525; border: 1px solid #444; color: #ccc; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; transition: 0.2s; } .tool-circle:active { transform: scale(0.9); border-color: var(--primary); color: var(--primary); } .tool-circle.active-state { background: rgba(124, 77, 255, 0.15); border-color: var(--primary); color: var(--primary); } /* Fixed Time Bar */ .fixed-info-bar { width: 100%; height: 30px; display: flex; align-items: center; justify-content: flex-start; padding: 0 20px; border-bottom: 1px solid #222; background-color: var(--surface); } .global-time-text { color: #888; font-size: 0.8rem; font-family: monospace; direction: ltr; } /* Horizontal Scroll Timeline */ .timeline-scroll-area { flex: 1; width: 100%; overflow-x: auto; white-space: nowrap; padding: 15px 0; display: flex; align-items: center; scrollbar-width: none; } .timeline-scroll-area::-webkit-scrollbar { display: none; } .spacer { min-width: 50vw; } .word-chip { background-color: var(--chip-bg); color: #aaa; padding: 8px 18px; border-radius: 12px; margin: 0 4px; font-size: 0.95rem; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; } .word-chip.active { background-color: var(--primary); color: #fff; font-weight: bold; transform: scale(1.1); } .newline-indicator { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: #555; margin: 0 10px; } /* Bottom Sheets */ .bottom-sheet-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 6000; display: none; align-items: flex-end; justify-content: center; } .bottom-sheet-overlay.show { display: flex; } .bottom-sheet { width: 100%; background: var(--surface); border-top-left-radius: 30px; border-top-right-radius: 30px; padding: 25px 25px 80px 25px; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); display: none; flex-direction: column; gap: 20px; box-shadow: 0 -10px 40px rgba(0,0,0,0.6); } .bottom-sheet.active { display: flex; transform: translateY(0); } .sheet-handle { width: 50px; height: 5px; background: #333; border-radius: 3px; margin: 0 auto 5px auto; } .sheet-title { text-align: center; color: #888; font-size: 0.9rem; margin-bottom: 5px; } .sheet-actions { display: flex; gap: 12px; margin-top: 10px; } .action-btn { flex: 1; padding: 15px; border-radius: 18px; border: none; font-family: inherit; font-size: 1rem; font-weight: bold; cursor: pointer; } .btn-cancel-sheet { background: #333; color: #ccc; } .btn-apply-sheet { background: var(--primary); color: #fff; } .btn-delete-sheet { background: var(--danger-red); color: #fff; } .sheet-input { width: 100%; background: var(--input-bg); border: none; border-radius: 18px; padding: 18px; color: white; font-family: inherit; font-size: 1.1rem; text-align: center; } .sheet-meta-row { display: flex; align-items: center; justify-content: center; gap: 15px; background: #252525; padding: 10px; border-radius: 15px; } .time-display-text { color: #bbb; font-family: monospace; font-size: 1rem; letter-spacing: 1px; direction: ltr; } .mini-play-btn { width: 35px; height: 35px; border-radius: 50%; background: #333; color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; } .time-control-row { display: flex; align-items: center; justify-content: space-between; background: var(--input-bg); padding: 10px 15px; border-radius: 18px; } .time-label { color: #aaa; font-size: 0.9rem; width: 50px; } .time-adjuster { display: flex; align-items: center; gap: 15px; } .time-btn { width: 40px; height: 40px; background: #333; border: none; border-radius: 12px; color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } .time-value { font-family: monospace; font-size: 1.1rem; letter-spacing: 1px; width: 60px; text-align: center; direction: ltr; } .delete-icon-wrap { width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 82, 82, 0.1); color: var(--danger-red); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto; } .delete-msg { text-align: center; color: #fff; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.6; } .highlight-word { color: var(--primary); font-weight: bold; padding: 0 5px; } #loader, #resultScreen { position: fixed; top:0; left:0; width:100%; height:100%; background: var(--bg); z-index: 6000; display: none; flex-direction: column; justify-content: center; align-items: center; } .spinner { width: 50px; height: 50px; border: 5px solid #444; border-top-color: var(--primary); border-radius: 50%; animation: s 0.8s linear infinite; } @keyframes s { to { transform: rotate(360deg); } } #queueStatusMsg { margin-top: 15px; font-size: 1.1rem; color: #ddd; font-weight: bold; text-align: center; }