/* Reddit Video Maker Bot - Main Application Styles */ :root { --bg-primary: #0f0f0f; --bg-secondary: #1a1a1a; --bg-tertiary: #252525; --text-primary: #ffffff; --text-secondary: #a0a0a0; --text-muted: #666666; --accent-primary: #ff4500; --accent-secondary: #ff6b35; --success: #4caf50; --warning: #ff9800; --error: #f44336; --info: #2196f3; --border-color: #333333; --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); --sidebar-width: 240px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; } /* Sidebar Navigation */ .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border-color); padding: 20px 0; overflow-y: auto; z-index: 100; } .sidebar .logo { padding: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; } .sidebar .logo h2 { font-size: 1.2rem; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .nav-links { list-style: none; } .nav-links li a { display: block; padding: 12px 24px; color: var(--text-secondary); text-decoration: none; transition: all 0.2s ease; border-left: 3px solid transparent; } .nav-links li a:hover { background: var(--bg-tertiary); color: var(--text-primary); } .nav-links li a.active { background: rgba(255, 69, 0, 0.1); color: var(--accent-primary); border-left-color: var(--accent-primary); } /* Main Content */ .content { margin-left: var(--sidebar-width); padding: 30px; min-height: 100vh; } .content header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); } .content header h1 { font-size: 2rem; font-weight: 600; } .header-actions { display: flex; gap: 12px; align-items: center; } /* Cards */ .card { background: var(--bg-secondary); border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); } .card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text-primary); } .card-description { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .card-wide { grid-column: span 2; } /* Dashboard Grid */ .dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; } @media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } .card-wide { grid-column: span 1; } } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-decoration: none; gap: 8px; } .btn-primary { background: var(--accent-primary); color: white; } .btn-primary:hover { background: var(--accent-secondary); } .btn-primary:disabled { background: var(--bg-tertiary); color: var(--text-muted); cursor: not-allowed; } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: var(--bg-secondary); border-color: var(--text-muted); } .btn-danger { background: var(--error); color: white; } .btn-danger:hover { background: #d32f2f; } .btn-danger:disabled { background: var(--bg-tertiary); color: var(--text-muted); cursor: not-allowed; } .btn-small { padding: 6px 12px; font-size: 0.8rem; } .btn-large { padding: 14px 28px; font-size: 1rem; width: 100%; margin-bottom: 12px; } .action-buttons { display: flex; flex-direction: column; gap: 12px; } /* Forms */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-primary); } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 0.95rem; transition: border-color 0.2s ease; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); } .form-group input::placeholder { color: var(--text-muted); } .form-group small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.8rem; } .form-group input[type="range"] { padding: 0; height: 8px; background: var(--bg-tertiary); border: none; cursor: pointer; } .form-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--accent-primary); border-radius: 50%; cursor: pointer; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } } .input-with-prefix { display: flex; align-items: stretch; } .input-with-prefix .prefix { display: flex; align-items: center; padding: 0 12px; background: var(--bg-primary); border: 1px solid var(--border-color); border-right: none; border-radius: 8px 0 0 8px; color: var(--text-secondary); font-weight: 500; } .input-with-prefix input { border-radius: 0 8px 8px 0; } .checkbox-group label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 400; } .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; } /* Status Indicator */ .status-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-tertiary); border-radius: 20px; } .status-indicator .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); } .status-indicator.running .dot { background: var(--info); animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Config Summary */ .config-summary .config-item { padding: 10px 0; border-bottom: 1px solid var(--border-color); } .config-summary .config-item:last-child { border-bottom: none; } .config-summary .warning { color: var(--warning); } .config-summary a { color: var(--accent-primary); } /* Progress */ .progress-info { padding: 16px; background: var(--bg-tertiary); border-radius: 8px; } .progress-title { font-weight: 600; margin-bottom: 4px; } .progress-subreddit { color: var(--accent-primary); font-size: 0.9rem; margin-bottom: 16px; } .progress-bar-container { height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden; margin-bottom: 8px; } .progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); border-radius: 4px; transition: width 0.3s ease; } .progress-percent { text-align: right; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; } .progress-steps { display: flex; flex-direction: column; gap: 8px; } .progress-steps .step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-secondary); border-radius: 6px; } .progress-steps .step.completed { color: var(--success); } .progress-steps .step.in_progress { color: var(--info); } .progress-steps .step.failed { color: var(--error); } .step-icon { width: 20px; text-align: center; } .no-progress { text-align: center; padding: 40px; color: var(--text-muted); } .no-progress .hint { margin-top: 10px; font-size: 0.9rem; } /* Video Items */ .video-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); } .video-item:last-child { border-bottom: none; } .video-name { font-weight: 500; } .video-subreddit { color: var(--accent-primary); font-size: 0.85rem; } /* Videos Grid */ .videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; } .video-card .video-preview { margin: -24px -24px 16px -24px; border-radius: 12px 12px 0 0; overflow: hidden; background: #000; } .video-card .video-preview video { width: 100%; max-height: 300px; display: block; } .video-card .video-info { margin-bottom: 16px; } .video-card .video-name { font-size: 1rem; margin-top: 4px; word-break: break-word; } .video-card .video-meta { display: flex; gap: 16px; margin-top: 8px; color: var(--text-muted); font-size: 0.85rem; } .video-card .video-actions { display: flex; gap: 8px; } /* Media Grid */ .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; } .media-item { background: var(--bg-tertiary); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .media-preview { border-radius: 6px; overflow: hidden; background: #000; } .media-preview video { width: 100%; height: 160px; object-fit: cover; } .media-preview audio { width: 100%; } .media-info { display: flex; justify-content: space-between; align-items: center; } .media-name { font-weight: 500; } .media-size { color: var(--text-muted); font-size: 0.85rem; } /* Empty State */ .empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); } .empty-state h3 { margin-bottom: 10px; } .empty-state p { margin-bottom: 20px; } .empty-state .hint { color: var(--text-muted); font-size: 0.9rem; } /* Loading */ .loading { text-align: center; padding: 40px; color: var(--text-muted); } /* Error */ .error { text-align: center; padding: 40px; color: var(--error); } /* Upload Progress */ .upload-progress { position: fixed; bottom: 20px; right: 20px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px 24px; box-shadow: var(--card-shadow); z-index: 1000; } .upload-progress.hidden { display: none; } .upload-progress-bar { width: 200px; height: 6px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden; margin-bottom: 8px; } .upload-progress-fill { height: 100%; background: var(--accent-primary); animation: indeterminate 1.5s infinite linear; } @keyframes indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } } /* Status Text */ .status-text { margin-left: 12px; font-size: 0.9rem; } .status-text.success { color: var(--success); } .status-text.error { color: var(--error); } /* Filter Select */ .filter-select { padding: 10px 16px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 0.9rem; } /* Notifications */ .notification { position: fixed; bottom: 20px; right: 20px; padding: 16px 24px; border-radius: 8px; font-weight: 500; z-index: 1000; animation: slideIn 0.3s ease; } .notification.success { background: var(--success); color: white; } .notification.error { background: var(--error); color: white; } .notification.info { background: var(--info); color: white; } @keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Responsive */ @media (max-width: 768px) { .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); } .sidebar .logo { display: none; } .nav-links { display: flex; overflow-x: auto; padding: 0 10px; } .nav-links li a { padding: 12px 16px; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; } .nav-links li a.active { border-left-color: transparent; border-bottom-color: var(--accent-primary); } .content { margin-left: 0; padding: 20px; } .content header { flex-direction: column; align-items: flex-start; gap: 16px; } .content header h1 { font-size: 1.5rem; } .form-row { grid-template-columns: 1fr; } .videos-grid, .media-grid { grid-template-columns: 1fr; } }