/* Reset and base styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; height: 100vh; overflow: hidden; } .app-container { height: 100vh; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); } /* Header */ .app-header { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); z-index: 100; } .header-left h1 { font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; } .header-left h1 i { color: #3498db; } .header-right { display: flex; gap: 0.5rem; } /* Buttons */ .btn { padding: 0.5rem 1rem; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; } .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .btn:active { transform: translateY(0); } .btn-primary { background: linear-gradient(135deg, #3498db, #2980b9); color: white; } .btn-primary:hover { background: linear-gradient(135deg, #2980b9, #1f5f8b); } .btn-secondary { background: linear-gradient(135deg, #95a5a6, #7f8c8d); color: white; } .btn-secondary:hover { background: linear-gradient(135deg, #7f8c8d, #6c7b7d); } .btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; } .btn-danger:hover { background: linear-gradient(135deg, #c0392b, #a93226); } .btn-info { background: linear-gradient(135deg, #17a2b8, #138496); color: white; } .btn-info:hover { background: linear-gradient(135deg, #138496, #117a8b); } .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .btn:disabled:hover { transform: none; box-shadow: none; } /* Main content */ .main-content { flex: 1; padding: 1.5rem; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 1.5rem; grid-template-areas: "status control" "activity activity" "activity activity"; } /* Status Panel */ .status-panel { grid-area: status; background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); display: flex; justify-content: space-around; align-items: center; } .status-item { text-align: center; } .status-label { display: block; font-size: 0.8rem; color: #7f8c8d; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; } .status-value { display: block; font-size: 1.2rem; font-weight: 600; color: #2c3e50; } #syncStatus { padding: 0.25rem 0.75rem; border-radius: 20px; background: #ecf0f1; color: #7f8c8d; } #syncStatus.running { background: #d5f4e6; color: #27ae60; } #syncStatus.stopped { background: #fadbd8; color: #e74c3c; } #syncStatus.completed { background: #d4edda; color: #28a745; } #syncStatus.error { background: #f8d7da; color: #721c24; } /* Progress Bar */ .progress-container { width: 100%; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin-top: 0.5rem; } .progress-bar { height: 100%; background: linear-gradient(90deg, #3498db, #2ecc71); border-radius: 4px; transition: width 0.3s ease; position: relative; } .progress-bar::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 2s infinite; } @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* Control Panel */ .control-panel { grid-area: control; background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); display: flex; gap: 1rem; justify-content: center; align-items: center; } /* Activity Panel */ .activity-panel { grid-area: activity; background: white; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; } .activity-panel h3 { margin-bottom: 1rem; color: #2c3e50; display: flex; align-items: center; gap: 0.5rem; } .activity-log { flex: 1; overflow-y: auto; } .empty-activity { text-align: center; color: #95a5a6; font-style: italic; padding: 2rem; } .activity-item { padding: 0.75rem; margin-bottom: 0.5rem; border-radius: 6px; background: #f8f9fa; border-left: 4px solid #95a5a6; font-size: 0.9rem; } .activity-item.info { border-left-color: #3498db; } .activity-item.success { border-left-color: #27ae60; } .activity-item.warning { border-left-color: #f39c12; } .activity-item.error { border-left-color: #e74c3c; } .activity-time { font-size: 0.8rem; color: #7f8c8d; margin-bottom: 0.25rem; } .activity-message { color: #2c3e50; } /* Modal */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); } .modal.show { display: flex; align-items: center; justify-content: center; } .modal-content { background: white; border-radius: 12px; width: 90%; max-width: 800px; max-height: 90vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: modalSlideIn 0.3s ease-out; } @keyframes modalSlideIn { from { opacity: 0; transform: translateY(-50px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { display: flex; align-items: center; gap: 0.5rem; } .close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s ease; } .close-btn:hover { background-color: rgba(255, 255, 255, 0.1); } .modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; } .modal-footer { padding: 1.5rem; background: #f8f9fa; display: flex; justify-content: flex-end; gap: 1rem; } /* Settings sections */ .settings-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #ecf0f1; } .settings-section:last-child { border-bottom: none; margin-bottom: 0; } .settings-section h3 { color: #2c3e50; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .form-group { margin-bottom: 1rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #2c3e50; } .form-group input[type="text"], .form-group input[type="url"], .form-group input[type="password"], .form-group input[type="number"], .form-group select { width: 100%; padding: 0.75rem; border: 2px solid #ecf0f1; border-radius: 6px; font-size: 0.9rem; transition: border-color 0.2s ease; } .form-group input:focus, .form-group select:focus { outline: none; border-color: #3498db; } .form-group input[type="checkbox"] { margin-right: 0.5rem; } .path-input-group { display: flex; gap: 0.5rem; } .path-input-group input { flex: 1; } /* Notifications */ .notification-container { position: fixed; top: 20px; right: 20px; z-index: 1001; display: flex; flex-direction: column; gap: 0.5rem; } .notification { background: white; padding: 1rem 1.5rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); border-left: 4px solid #3498db; min-width: 300px; animation: notificationSlideIn 0.3s ease-out; } .notification.success { border-left-color: #27ae60; } .notification.warning { border-left-color: #f39c12; } .notification.error { border-left-color: #e74c3c; } .notification-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .notification-title { font-weight: 600; color: #2c3e50; } .notification-close { background: none; border: none; color: #95a5a6; cursor: pointer; font-size: 1.2rem; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s ease; } .notification-close:hover { background-color: #ecf0f1; } .notification-message { color: #7f8c8d; font-size: 0.9rem; } @keyframes notificationSlideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } } /* Responsive design */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; grid-template-areas: "status" "control" "queue" "activity"; } .status-panel { flex-direction: column; gap: 1rem; } .control-panel { flex-direction: column; } .modal-content { width: 95%; margin: 1rem; } .path-input-group { flex-direction: column; } } /* Sync Details Styling */ .sync-details { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; } .status-detail { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .status-detail.pending { background-color: #fff3cd; color: #856404; border: 1px solid #ffeaa7; } .status-detail.in-progress { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } .status-detail.completed { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .status-detail.failed { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .status-detail.errors { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }