.infrastructure-page { padding: 2rem; width: 100%; box-sizing: border-box; } .page-header { margin-bottom: 2rem; } /* H1 inherited from global */ .page-subtitle { margin: 0; font-size: 0.9375rem; color: var(--text-secondary); } .infra-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; width: 100%; } .infra-card { background: var(--bg-white); border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); width: 100%; box-sizing: border-box; } .infra-card.full-width { grid-column: 1 / -1; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } .header-left { display: flex; align-items: center; gap: 0.75rem; } .header-left svg { color: var(--primary); } .card-header h2 { margin: 0; } .status-indicator { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: 9999px; } .status-indicator.connected { background: rgba(37, 211, 102, 0.1); color: var(--primary); } .status-indicator.disconnected { background: #fee2e2; color: #dc2626; } .status-indicator.sqlite { background: #e0f2fe; color: #0369a1; } .warning-badge { font-size: 0.75rem; padding: 0.375rem 0.75rem; background: #fef3c7; color: #d97706; border-radius: 6px; } /* Radio Group */ .radio-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; } .radio-option { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; } .radio-option:hover { border-color: var(--text-muted); } .radio-option.selected { border-color: var(--primary); background: rgba(37, 211, 102, 0.05); } .radio-option input { display: none; } .radio-option span { font-weight: 600; color: var(--text-primary); } .radio-option small { font-size: 0.75rem; color: var(--text-secondary); } /* Watermark Icon */ .radio-option { position: relative; overflow: hidden; } .watermark-icon { position: absolute; right: -15px; bottom: -15px; width: 100px; height: 100px; opacity: 0.15; transform: rotate(-15deg); pointer-events: none; transition: all 0.3s ease; } .radio-option:hover .watermark-icon { opacity: 0.25; transform: rotate(-12deg) scale(1.05); } .radio-option.selected .watermark-icon { opacity: 0.3; transform: rotate(-12deg) scale(1.1); } /* Form Styles */ .config-form { display: flex; flex-direction: column; gap: 1rem; } .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; } .form-row .form-group.small { max-width: 120px; } .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .form-group label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); } .form-group input, .form-group select { padding: 0.75rem 1rem; font-size: 0.9375rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); transition: border-color 0.2s; } .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); } /* Toggle */ .toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; } .toggle-info { display: flex; flex-direction: column; gap: 0.25rem; } .toggle-info span { font-size: 0.9375rem; font-weight: 500; color: var(--text-primary); } .toggle-info small { font-size: 0.75rem; font-weight: 400; color: #64748b; /* Slate 500 */ opacity: 0.85; } .toggle-switch { position: relative; width: 48px; height: 26px; cursor: pointer; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #e5e7eb; border-radius: 26px; transition: all 0.2s; } .toggle-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } .toggle-switch input:checked + .toggle-slider { background: var(--primary); } .toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); } /* Migrations Section */ .migrations-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); } .migrations-section h3 { margin: 0 0 1rem; font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); } .migrations-list { background: var(--bg-light); border-radius: var(--radius); padding: 0.5rem; margin-bottom: 1rem; } .migration-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 0.75rem; padding: 0.625rem 0.75rem; align-items: center; } .migration-status { font-size: 0.875rem; } .migration-item.completed .migration-status { color: var(--primary); } .migration-item.pending .migration-status { color: var(--text-muted); } .migration-name { font-size: 0.875rem; color: var(--text-primary); } .migration-date { font-size: 0.75rem; color: var(--text-muted); } .migration-actions { display: flex; gap: 0.75rem; } /* Queue Stats */ .queue-stats { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); } .queue-stats h3 { margin: 0 0 1rem; font-size: 0.9375rem; font-weight: 600; color: var(--text-primary); } .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; } .queue-stat-card { background: var(--bg-light); padding: 1rem; border-radius: var(--radius); } .queue-stat-card h4 { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); } .stat-values { display: flex; gap: 1.5rem; } .stat-item { display: flex; flex-direction: column; gap: 0.125rem; } .stat-item .value { font-size: 1.25rem; font-weight: 700; } .stat-item .label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; } .stat-item.pending .value { color: #d97706; } .stat-item.pending .label { color: #d97706; } .stat-item.completed .value { color: var(--primary); } .stat-item.completed .label { color: var(--primary); } .stat-item.failed .value { color: #dc2626; } .stat-item.failed .label { color: #dc2626; } .queue-actions { display: flex; gap: 0.75rem; } /* Buttons */ .btn-primary { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s; } .btn-primary:hover { background: var(--primary-hover); } .btn-primary.large { padding: 0.875rem 1.5rem; font-size: 1rem; } .btn-outline { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .btn-outline:hover { background: var(--bg-light); } .btn-danger-outline { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; background: transparent; color: #dc2626; border: 1px solid #dc2626; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; } .btn-danger-outline:hover { background: #fee2e2; } /* Footer */ .page-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; } /* Responsive */ @media (max-width: 900px) { .infra-sections { grid-template-columns: 1fr; } .infrastructure-page { padding: 1rem; } .radio-group { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .stats-row { grid-template-columns: 1fr; } /* Card header mobile layout */ .card-header { flex-wrap: wrap; gap: 0.75rem; } .header-left { flex: 1; min-width: 0; } .header-left h2 { font-size: 0.9375rem; line-height: 1.3; } /* Status badge mobile - prevent shrinking */ .status-indicator { flex-shrink: 0; white-space: nowrap; font-size: 0.75rem; padding: 0.25rem 0.625rem; } /* Warning badge mobile */ .warning-badge { flex-shrink: 0; white-space: nowrap; font-size: 0.6875rem; padding: 0.25rem 0.5rem; } /* Toggle row mobile - prevent switch from being cut off */ .toggle-row { gap: 1rem; } .toggle-info { flex: 1; min-width: 0; } .toggle-switch { flex-shrink: 0; } /* Queue actions stack on mobile */ .queue-actions { flex-direction: column; } .queue-actions button { justify-content: center; } } @media (max-width: 768px) { .infrastructure-page { padding: 0.75rem; } .infra-card { padding: 1rem; } .form-row .form-group.small { max-width: none; } .form-group input, .form-group select { font-size: 0.875rem; padding: 0.625rem 0.875rem; } .migration-item { grid-template-columns: 24px 1fr; gap: 0.5rem; } .migration-date { grid-column: 2; } .migration-actions { flex-direction: column; } .migration-actions button { justify-content: center; } .stat-values { gap: 1rem; } .stat-item .value { font-size: 1rem; } .page-footer { justify-content: stretch; } .page-footer button { width: 100%; justify-content: center; } }