/* ============================================ Toast Notification System ============================================ */ /* Entry animation — slide in from right */ @keyframes toastSlideIn { 0% { opacity: 0; transform: translateX(120%); } 60% { opacity: 1; transform: translateX(-6px); } 100% { opacity: 1; transform: translateX(0); } } /* Exit animation — slide out to right + fade */ @keyframes toastSlideOut { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(120%); } } /* Progress bar countdown */ @keyframes toastProgress { from { width: 100%; } to { width: 0%; } } .toast-slide-in { animation: toastSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards; } .toast-slide-out { animation: toastSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards; pointer-events: none; } /* Config section styling */ .config-section { background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; } .config-section:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); } .config-section-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-weight: 600; font-size: 1.1rem; } .config-section-title i { font-size: 1.25rem; width: 28px; text-align: center; } .config-section-description { color: #9ca3af; font-size: 0.875rem; margin-bottom: 1rem; padding-left: 2.5rem; } /* Option card styling */ .option-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; transition: all 0.2s ease; cursor: pointer; display: block; } .option-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); } .option-card.selected { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.5); } .option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; } /* Stacked option layout (full width, one per row) */ .option-stack { display: flex; flex-direction: column; gap: 0.5rem; } /* Feature badge */ .feature-badge { display: inline-flex; align-items: center; gap: 0.25rem; background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 0.125rem 0.5rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.025em; } .feature-badge.new { background: rgba(34, 197, 94, 0.2); color: #4ade80; } .feature-badge.beta { background: rgba(251, 191, 36, 0.2); color: #fbbf24; } /* SponsorBlock disabled state */ .sponsorblock-disabled { opacity: 0.4; pointer-events: none; user-select: none; } .sponsorblock-disabled .option-card { cursor: not-allowed; } /* Generic disabled option-card (e.g. subtitle format restrictions) */ .option-card.disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; user-select: none; } /* Toast container */ #toastContainer { z-index: 9999; display: flex; flex-direction: column; gap: 0.6rem; } /* Base toast card */ .toast-custom { min-width: 320px; max-width: 420px; border-radius: 10px; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; } .toast-custom .toast-body { font-size: 0.9rem; font-weight: 500; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; } .toast-custom .toast-body i { font-size: 1.1rem; flex-shrink: 0; } .toast-custom .btn-close { filter: brightness(0) invert(1); opacity: 0.6; transition: opacity 0.2s ease; } .toast-custom .btn-close:hover { opacity: 1; } /* ---- Toast type color schemes ---- */ /* Info (primary) */ .toast-custom.toast-info { background: rgba(37, 99, 235, 0.88); border-color: rgba(96, 165, 250, 0.3); } .toast-custom.toast-info .toast-progress-bar { background: rgba(191, 219, 254, 0.7); } /* Success */ .toast-custom.toast-success { background: rgba(22, 163, 74, 0.88); border-color: rgba(74, 222, 128, 0.3); } .toast-custom.toast-success .toast-progress-bar { background: rgba(187, 247, 208, 0.7); } /* Danger / Error */ .toast-custom.toast-danger { background: rgba(220, 38, 38, 0.88); border-color: rgba(248, 113, 113, 0.3); } .toast-custom.toast-danger .toast-progress-bar { background: rgba(254, 202, 202, 0.7); } /* Warning */ .toast-custom.toast-warning { background: rgba(180, 130, 10, 0.9); border-color: rgba(253, 224, 71, 0.3); } .toast-custom.toast-warning .toast-progress-bar { background: rgba(254, 240, 138, 0.7); } /* Progress bar track */ .toast-progress-track { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(0, 0, 0, 0.2); } /* Progress bar fill */ .toast-progress-bar { height: 100%; width: 100%; border-radius: 0 0 10px 10px; animation: toastProgress linear forwards; } /* Pause progress bar on hover */ .toast-custom:hover .toast-progress-bar { animation-play-state: paused; } /* Playlist selector styles */ .playlist-container { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1rem; margin-top: 1rem; } .playlist-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; } .playlist-info { display: flex; align-items: center; gap: 1rem; } .playlist-thumbnail { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; } .playlist-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; } .playlist-items-container { max-height: 500px; overflow-y: auto; padding-right: 0.5rem; } .playlist-items-container::-webkit-scrollbar { width: 6px; } .playlist-items-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; } .playlist-items-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; } /* ============================================ Unified Media Item - Used for both single videos and playlist items ============================================ */ .media-item { display: flex; align-items: center; gap: 1rem; padding: 0.7rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; margin-bottom: 0.5rem; transition: all 0.2s ease; position: relative; } .media-item:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); } .media-item.selected { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); } .media-item-number { font-size: 0.75rem; padding: 0.25rem 0.5rem; min-width: 30px; text-align: center; flex-shrink: 0; } .media-item-checkbox { flex-shrink: 0; } .media-item-thumbnail { width: 100px; height: 70px; border-radius: 8px; object-fit: cover; flex-shrink: 0; } .media-item-info { flex-grow: 1; min-width: 0; } .media-item-title { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .media-item-meta { color: #9ca3af; font-size: 0.85rem; display: flex; align-items: center; flex-wrap: wrap; } .item-sb-badge { font-size: 0.65rem; padding: 0.2rem 0.4rem; display: inline-flex; align-items: center; gap: 0.25rem; animation: fadeIn 0.3s ease-in; } .item-sb-badge-inline { font-size: 0.6rem; padding: 0.15rem 0.3rem; display: inline-flex; align-items: center; gap: 0.2rem; animation: fadeIn 0.3s ease-in; } .item-sb-badge i, .item-sb-badge-inline i { font-size: 0.7rem; } .media-item-controls { display: flex; align-items: center; gap: 0.5rem; } @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } .item-duration { display: inline-block; } /* Unified Format Controls - Used in both media preview and playlist items */ .unified-format-controls { display: flex; align-items: center; gap: 0.5rem; } .unified-format-controls .btn-group { flex-shrink: 0; } .unified-format-controls .btn { white-space: nowrap; padding: 0.15rem 0.75rem; font-size: 0.875rem; } .unified-format-controls .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; } /* Active state styling - same for both audio and video */ .unified-format-controls .btn.active { background: rgba(108, 117, 125, 0.3); border-color: #6c757d; color: #ffffff; } /* Unified controls container for both media preview and playlist items */ .media-preview-controls, .media-item-controls { display: flex; align-items: center; gap: 0.5rem; } .item-file-format { width: 90px; font-size: 0.75rem; padding: 0.25rem 0.5rem; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); color: #fff; } .item-file-format:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(59, 130, 246, 0.5); color: #fff; box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25); } .btn-config-item { padding: 0.25rem 0.5rem; font-size: 0.75rem; } /* Item config modal */ .item-config-badge { font-size: 0.65rem; padding: 0.15rem 0.35rem; margin-left: 0.25rem; } /* Loading skeleton */ .skeleton { animation: skeleton-loading 1s linear infinite alternate; } @keyframes skeleton-loading { 0% { background-color: rgba(255, 255, 255, 0.05); } 100% { background-color: rgba(255, 255, 255, 0.1); } } .skeleton-item { /* Slightly larger skeletons to match the final .media-item footprint including extra spacing for numbering/controls on the left. */ display: flex; align-items: center; gap: 1.25rem; padding: 1rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; margin-bottom: 0.5rem; /* Larger min-height to better match .media-item (thumbnail + padding + numbering) */ min-height: calc(70px + 2.4rem); } /* Glassmorphism Navbar */ .navbar-glass { background: rgba(33, 37, 41, 0.7) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); padding: 0.6rem 1.5rem; z-index: 1030; } /* Settings Modal Styling */ #configModal .modal-content { background: #1a1d21 !important; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; overflow: hidden; } #configModal .modal-header { background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 1rem 1.5rem; } #configModal .modal-title { color: #fff; font-weight: 600; } #configModal .modal-body { padding: 1.5rem; background: #1a1d21; } #configModal .modal-footer { background: rgba(0, 0, 0, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1rem 1.5rem; } .btn-config-trigger { background: #2d2d2d; border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; padding: 0.5rem 1rem; font-weight: 500; transition: all 0.3s ease; } .btn-config-trigger:hover { background: #3d3d3d; border-color: rgba(255, 255, 255, 0.25); color: #fff; transform: translateY(-1px); } .btn-config-trigger:focus { box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1); background: #3d3d3d; color: #fff; } /* Media Preview */ .media-preview { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; display: none; } .media-preview.visible { display: block; animation: slideIn 0.3s ease-out; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* Media preview uses the unified .media-item class now */ .media-preview .media-item { margin-bottom: 0; } .source-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; } .source-badge-inline { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.7rem; font-weight: 500; } .source-badge.youtube, .source-badge-inline.youtube { background: rgba(255, 0, 0, 0.15); color: #ff4444; } .source-badge.youtube_music, .source-badge-inline.youtube_music { background: rgba(255, 0, 0, 0.15); color: #ff6666; } .source-badge.spotify, .source-badge-inline.spotify { background: rgba(30, 215, 96, 0.15); color: #1ed760; } .media-preview-loading { display: flex; align-items: center; justify-content: center; padding: 1rem; } /* Dropdown menu dark theme */ .dropdown-menu-dark { background: #2d2d2d; border: 1px solid rgba(255, 255, 255, 0.15); } .dropdown-menu-dark .dropdown-item { color: #e5e7eb; padding: 0.5rem 1rem; transition: all 0.2s ease; } .dropdown-menu-dark .dropdown-item:hover, .dropdown-menu-dark .dropdown-item:focus { background: rgba(59, 130, 246, 0.15); color: #60a5fa; } .dropdown-menu-dark .dropdown-header { color: #9ca3af; font-size: 0.75rem; padding: 0.5rem 1rem 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; } .dropdown-menu-dark .dropdown-divider { border-color: rgba(255, 255, 255, 0.1); } /* ============================================ Custom Dropdown Components ============================================ */ .custom-dropdown { position: relative; display: inline-block; } .custom-dropdown-toggle { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; padding: 0.17rem 1rem; border-radius: 6px; cursor: pointer; font-size: 0.875rem; transition: all 0.2s ease; white-space: nowrap; position: relative; min-width: 150px; text-align: left; display: flex; align-items: center; gap: 0.5rem; } .custom-dropdown-toggle:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); } .custom-dropdown-toggle .fa-chevron-down { margin-left: auto; font-size: 0.75rem; transition: transform 0.2s ease; } .custom-dropdown.active .custom-dropdown-toggle .fa-chevron-down { transform: rotate(180deg); } .custom-dropdown-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 1000; min-width: 100%; background: #1a1d24; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; max-height: 250px; overflow-y: auto; } .custom-dropdown.active .custom-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); } .custom-dropdown-item { padding: 0.2rem 1rem; color: #e5e7eb; cursor: pointer; transition: all 0.15s ease; font-size: 0.875rem; } .custom-dropdown-item:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; } .custom-dropdown-item.selected { background: rgba(13, 110, 253, 0.12); color: #0d6efd; } .custom-dropdown-item:first-child { border-radius: 6px 6px 0 0; } .custom-dropdown-item:last-child { border-radius: 0 0 6px 6px; } /* Scrollbar styling for dropdown menu */ .custom-dropdown-menu::-webkit-scrollbar { width: 6px; } .custom-dropdown-menu::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; } .custom-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; } .custom-dropdown-menu::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } /* Bulk Actions Dropdown */ #bulkActionsDropdown .custom-dropdown-toggle { background: rgba(13, 110, 253, 0.1); border-color: rgba(13, 110, 253, 0.5); color: #0d6efd; padding: 0.375rem 0.75rem; min-width: 140px; } #bulkActionsDropdown .custom-dropdown-toggle:hover { background: rgba(13, 110, 253, 0.2); border-color: #0d6efd; } .bulk-actions-menu { min-width: 200px; padding-bottom: 8px; } .dropdown-section-header { color: #9ca3af; font-size: 0.75rem; padding: 0.5rem 1rem 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; cursor: default; } .dropdown-divider-custom { height: 1px; margin: 0.5rem 0; background: rgba(255, 255, 255, 0.1); } /* (download-source styling was reverted) */ /* Ensure the main URL input shows the blue focus style like other inputs */ #inputURL:focus { border-color: rgba(13, 110, 253, 0.8) !important; box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important; outline: none !important; } /* ============================================ Legal Disclaimer Footer ============================================ */ body { display: flex; flex-direction: column; min-height: 100vh; } .container { flex: 1; } .disclaimer-footer { background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.25rem 1rem; font-size: 0.75rem; line-height: 1.5; color: #6c757d; } /* ============================================ Mobile Responsive Media Queries ============================================ */ /* Mobile devices (phones, less than 768px) */ @media (max-width: 767.98px) { /* Ensure no horizontal overflow */ body { overflow-x: hidden; } .container { max-width: 100% !important; padding-left: 1rem; padding-right: 1rem; } /* Modal adjustments for mobile */ .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); } .modal-body { padding: 1rem !important; } /* Config section - touch-friendly spacing */ .config-section { padding: 1rem; margin-bottom: 1rem; } .config-section-title { font-size: 1rem; } .config-section-description { font-size: 0.8rem; padding-left: 2rem; } /* Option cards - larger touch targets */ .option-card { padding: 1rem; margin-bottom: 0.75rem; min-height: 50px; display: flex; align-items: center; } .option-card .form-check { width: 100%; } .option-card .form-check-input { width: 20px; height: 20px; margin-top: 0; } .option-card .form-check-label { font-size: 1rem; padding-left: 0.5rem; } /* Ensure rows don't overflow */ .row { margin-left: 0; margin-right: 0; } .row>* { padding-left: 0.5rem; padding-right: 0.5rem; } /* Playlist header - stack vertically */ .playlist-header { flex-direction: column; align-items: stretch; } .playlist-actions { width: 100%; justify-content: space-between; } .playlist-actions .btn { flex: 1; font-size: 0.75rem; padding: 0.375rem 0.5rem; } /* Custom dropdown on mobile */ .custom-dropdown { width: 100%; } .custom-dropdown-toggle { width: 100%; justify-content: space-between; } #bulkActionsDropdown .custom-dropdown-toggle { min-width: auto; width: 100%; } /* Media item - stack thumbnail and content */ .media-item { flex-wrap: wrap; padding: 0.75rem; } .media-item-thumbnail { width: 100%; height: auto; max-height: 180px; margin-bottom: 0.75rem; } .media-item-info { width: 100%; } .media-item-title { font-size: 0.95rem; white-space: normal; line-height: 1.3; } .media-item-meta { font-size: 0.8rem; flex-wrap: wrap; } /* Media controls - stack vertically */ .media-item-controls, .unified-format-controls { flex-wrap: wrap; width: 100%; gap: 0.5rem; } .unified-format-controls .btn-group { width: 100%; } .unified-format-controls .btn-group .btn { flex: 1; font-size: 0.875rem; padding: 0.5rem; } .item-file-format { width: 100%; font-size: 0.875rem; padding: 0.5rem; } /* Input groups on mobile */ .input-group-lg { flex-wrap: wrap; } .input-group-lg .btn, .input-group-lg .form-control { font-size: 1rem; } #pasteBtn { width: 100%; margin-top: 0.5rem; border-radius: 0.5rem !important; } /* Toast on mobile */ .toast-custom { min-width: 280px; max-width: calc(100vw - 2rem); } /* Buttons - full width on mobile */ .btn-config-trigger { width: 100%; text-align: center; } /* Card adjustments */ .card-body { padding: 1rem; } /* Navbar spacing */ .navbar { padding: 0.5rem 1rem; } /* Main container top padding */ .container[style*="padding-top"] { padding-top: 80px !important; } /* Feature badges */ .feature-badge { font-size: 0.65rem; padding: 0.1rem 0.4rem; } /* Modal title */ .modal-title { font-size: 1.1rem; } /* Footer text */ footer { font-size: 0.875rem; padding: 1rem 0.5rem; } .disclaimer-footer { padding: 1rem 0.75rem; font-size: 0.7rem; } .disclaimer-footer p { margin-bottom: 0.5rem !important; } } /* Small tablets (768px to 991px) */ @media (min-width: 768px) and (max-width: 991.98px) { .config-section-description { font-size: 0.85rem; } .option-card { padding: 0.875rem 1rem; } .media-item-thumbnail { width: 120px; height: 85px; } } /* Landscape phones */ @media (max-width: 767.98px) and (orientation: landscape) { .modal-dialog { max-height: calc(100vh - 1rem); } .modal-body { max-height: calc(100vh - 8rem); overflow-y: auto; } .media-item-thumbnail { width: 140px; height: auto; margin-bottom: 0; } .media-item { flex-wrap: nowrap; } }