/* Modern CSS for 4DSTAR Bundle Manager - v2 */ /* Global Resets and Variables */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --bg-color: #f4f7fa; --sidebar-bg: #ffffff; --content-bg: #ffffff; --text-color: #2c3e50; --text-light: #7f8c8d; --border-color: #e1e5e8; --primary-color: #3498db; --primary-hover: #2980b9; --danger-color: #e74c3c; --success-color: #27ae60; --warning-color: #f39c12; --sidebar-width: 220px; --header-height: 60px; } body.dark-mode { --bg-color: #2c3e50; --sidebar-bg: #34495e; --content-bg: #34495e; --text-color: #ecf0f1; --text-light: #95a5a6; --border-color: #4a6278; --primary-color: #3498db; --primary-hover: #4aa3df; } body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-color); transition: background-color 0.2s, color 0.2s; overflow: hidden; } /* Main Layout */ .main-container { display: flex; height: 100vh; } /* Two-Tiered Sidebar System */ /* Primary Sidebar (Tier 1) - Category Bar */ .primary-sidebar { width: 60px; background-color: var(--sidebar-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0; transition: width 0.3s ease, background-color 0.2s; overflow: hidden; z-index: 100; } .primary-sidebar:hover { width: 200px; } .primary-sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); text-align: center; white-space: nowrap; background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.02) 100%); } .brand-icon { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; } /* Ensure proper centering in collapsed state */ .primary-sidebar:not(:hover) .brand-icon { justify-content: center; } .primary-sidebar:not(:hover) .app-title { position: absolute; visibility: hidden; } .star-icon { font-size: 18px; color: #3b82f6; opacity: 0.9; } .brand-text { font-size: 16px; font-weight: 700; color: #1f2937; letter-spacing: 1px; } .app-title { font-size: 16px; font-weight: 700; color: #1f2937; letter-spacing: 1px; opacity: 0; transition: opacity 0.3s ease; margin: 0; } .primary-sidebar:hover .app-title { opacity: 1; } .category-nav { padding: 15px 0; flex-grow: 1; display: flex; flex-direction: column; gap: 8px; } .category-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; margin: 0; position: relative; } .category-item:hover { background-color: var(--hover-color); } .category-item.active { background-color: rgba(59, 130, 246, 0.1); border-left: 3px solid var(--primary-color); padding-left: 13px; } .category-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 14px; flex-shrink: 0; } .category-label { font-size: 0.9rem; font-weight: 500; opacity: 0; transition: opacity 0.3s ease; } .primary-sidebar:hover .category-label { opacity: 1; } .primary-sidebar-footer { padding: 12px 16px 16px 16px; border-top: 1px solid var(--border-color); display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 40px; } .version-info { font-size: 0.8rem; color: var(--text-light); opacity: 0; transition: opacity 0.3s ease; } .primary-sidebar:hover .version-info { opacity: 1; } /* Secondary Sidebar (Tier 2) - Content Sidebar */ .secondary-sidebar { width: var(--sidebar-width); background-color: #fafbfc; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; flex-shrink: 0; transition: background-color 0.2s; box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.05); } .sidebar-content { display: flex; flex-direction: column; height: 100%; } .sidebar-content.hidden { display: none; } .sidebar-header { padding: 24px 24px 20px 24px; border-bottom: 1px solid #e5e7eb; text-align: center; background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(147, 197, 253, 0.01) 100%); } .sidebar-header h3 { font-size: 1.3rem; font-weight: 700; color: #1f2937; margin: 0; letter-spacing: -0.025em; } .sidebar-nav { padding: 24px 20px; flex-grow: 1; } .nav-button { display: block; width: 100%; padding: 14px 20px; margin-bottom: 8px; background: white; border: 1px solid #e5e7eb; text-align: left; cursor: pointer; border-radius: 10px; transition: all 0.2s ease; font-size: 0.95rem; font-weight: 500; color: #374151; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .nav-button:hover { background-color: #f8fafc; border-color: #d1d5db; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .nav-button.active { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); border-color: #2563eb; color: white; font-weight: 600; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .nav-button.active:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); } .empty-state { padding: 60px 24px; text-align: center; color: #9ca3af; font-style: italic; font-size: 0.95rem; } /* Info Button Updates */ .info-button { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 8px 12px; cursor: pointer; font-size: 12px; transition: all 0.2s ease; width: fit-content; } .info-button:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); } .info-icon { font-size: 14px; } .info-label { opacity: 0; transition: opacity 0.3s ease; } .primary-sidebar:hover .info-label { opacity: 1; } /* Content Area */ .content-area { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; } #welcome-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; text-align: center; color: var(--text-light); } #welcome-screen h1 { font-size: 2rem; margin-bottom: 10px; } .content-header { display: flex; justify-content: space-between; align-items: center; padding: 0 25px; height: var(--header-height); border-bottom: 1px solid var(--border-color); background-color: var(--content-bg); flex-shrink: 0; } .content-header h2 { font-size: 1.4rem; } .action-buttons button { margin-left: 10px; padding: 8px 16px; border-radius: 5px; border: 1px solid var(--primary-color); background-color: transparent; color: var(--primary-color); cursor: pointer; transition: all 0.2s; } .action-buttons button:hover { background-color: var(--primary-color); color: white; } /* Tabs */ .tab-nav { display: flex; padding: 0 25px; border-bottom: 1px solid var(--border-color); background-color: var(--content-bg); flex-shrink: 0; } .tab-link { padding: 15px 20px; border: none; background: none; cursor: pointer; color: var(--text-light); font-size: 1rem; border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s; } .tab-link:hover { color: var(--primary-color); } .tab-link.active { color: var(--text-color); border-bottom-color: var(--primary-color); font-weight: 600; } #tab-content { padding: 25px; overflow-y: auto; flex-grow: 1; background-color: var(--bg-color); } .tab-pane { display: none; } .tab-pane.active { display: block; } /* Card-based info display */ .card { background-color: var(--content-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } .card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; } .info-grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px; } .info-grid .label { font-weight: 600; color: var(--text-light); } .info-grid .value.signature { word-break: break-all; font-family: monospace; font-size: 0.9rem; } /* Trust Indicator */ .trust-indicator-container { display: flex; align-items: center; gap: 10px; } .trust-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; } .trust-indicator.trusted { background-color: var(--success-color); } .trust-indicator.untrusted { background-color: var(--danger-color); } .trust-indicator.unsigned { background-color: var(--warning-color); } .trust-indicator.warning { background-color: var(--warning-color); } /* Plugins List */ #plugins-list .plugin-item { background-color: var(--content-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 15px; } #plugins-list h4 { font-size: 1.1rem; margin-bottom: 10px; } /* Validation Results */ #validation-results { background-color: var(--content-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; white-space: pre-wrap; word-wrap: break-word; font-family: monospace; } /* Modal */ .modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background-color: var(--content-bg); padding: 30px; border-radius: 8px; min-width: 400px; max-width: 600px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); position: relative; } .modal-close { position: absolute; top: 15px; right: 15px; font-size: 1.5rem; font-weight: bold; cursor: pointer; color: var(--text-light); } .modal-close:hover { color: var(--text-color); } #modal-title { font-size: 1.4rem; margin-bottom: 20px; } /* Utility */ .hidden { display: none; } /* Fill Modal Specifics */ #fill-targets-list, #fill-progress-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: 4px; padding: 10px; margin-top: 10px; margin-bottom: 15px; } .fill-target-item { display: flex; align-items: center; padding: 8px; border-bottom: 1px solid var(--border-color); } .fill-target-item:last-child { border-bottom: none; } .fill-target-item label { flex-grow: 1; margin-left: 10px; } .progress-indicator { width: 20px; height: 20px; margin-right: 10px; display: inline-block; vertical-align: middle; } /* Inline Editing Styles */ .editable-field { position: relative; display: flex; align-items: center; gap: 8px; } .edit-icon { background: none; border: none; cursor: pointer; font-size: 14px; padding: 4px; border-radius: 4px; transition: background-color 0.2s; opacity: 0.6; } .edit-icon:hover { background-color: var(--border-color); opacity: 1; } .field-input { padding: 4px 8px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; font-family: var(--font-family); background-color: white; min-width: 200px; } .field-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); } .field-display { flex: 1; } .hidden { display: none !important; } /* Fill Tab Styles */ #fill-tab { max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 8px; } .fill-header { margin-bottom: 20px; position: sticky; top: 0; background-color: var(--main-bg); z-index: 10; padding-bottom: 10px; } .fill-header h3 { margin-bottom: 8px; color: var(--text-color); } .fill-header p { color: var(--text-light); margin-bottom: 12px; } .fill-header-actions { margin-top: 12px; } #fill-targets-container { margin-bottom: 20px; } #fill-plugins-tables { margin-bottom: 20px; } .fill-plugin-table { margin-bottom: 24px; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; } .fill-plugin-header { background-color: var(--bg-color); padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-weight: 600; color: var(--text-color); } .fill-targets-table { width: 100%; border-collapse: collapse; } .fill-targets-table th, .fill-targets-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-color); } .fill-targets-table th { background-color: var(--sidebar-bg); font-weight: 600; color: var(--text-color); } .fill-targets-table tr:last-child td { border-bottom: none; } .fill-targets-table tr:hover { background-color: rgba(52, 152, 219, 0.05); } .fill-target-checkbox { margin-right: 8px; border-color: var(--primary-hover); } .fill-actions { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border-color); margin-top: 20px; } .action-button.secondary { background-color: var(--sidebar-bg); color: var(--text-color); border: 1px solid var(--border-color); } .action-button.secondary:hover { background-color: var(--border-color); } .action-button.primary { background-color: var(--primary-color); color: white; border: 1px solid var(--primary-color); } .action-button.primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); } #fill-progress-container { margin-top: 20px; padding: 16px; background-color: var(--sidebar-bg); border-radius: 8px; border: 1px solid var(--border-color); } #fill-progress-content { margin-top: 12px; } .progress-item { padding: 8px 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; } .progress-item:last-child { border-bottom: none; } .progress-status { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; } .progress-status.building { background-color: #fef3c7; color: #92400e; } .progress-status.success { background-color: #d1fae5; color: #065f46; } .progress-status.failure { background-color: #fee2e2; color: #991b1b; } /* Signature Warning Modal */ #signature-warning-modal .modal-content { max-width: 500px; } .signature-warning-content { text-align: center; } .warning-message { margin: 20px 0; padding: 20px; background-color: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px; flex-shrink: 0; margin-top: 2px; } .warning-text { line-height: 1.5; color: #92400e; } .warning-text strong { color: #78350f; } /* Save Options Modal */ .save-options { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; } .save-option-btn { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 2px solid var(--border-color); border-radius: 8px; background: white; cursor: pointer; transition: all 0.2s; text-align: left; } .save-option-btn:hover { border-color: var(--primary-color); background-color: rgba(52, 152, 219, 0.05); } .save-option-btn.primary { border-color: var(--primary-color); } .save-option-btn.secondary { border-color: var(--text-light); } .save-option-btn strong { font-size: 16px; margin-bottom: 4px; color: var(--text-color); } .save-option-btn small { font-size: 14px; color: var(--text-light); } .progress-indicator.spinner-icon { border: 2px solid var(--text-color-light); border-top: 2px solid var(--primary-color); border-radius: 50%; width: 16px; height: 16px; animation: spin 1s linear infinite; } .progress-indicator.success-icon::before { content: '✔'; color: var(--success-color); font-size: 20px; } .progress-indicator.failure-icon::before { content: '✖'; color: var(--error-color); font-size: 20px; } #start-fill-button { background-color: var(--primary-color); color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 1em; transition: background-color 0.3s; } #start-fill-button:hover { background-color: var(--primary-color-dark); } .spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--primary-color); animation: spin 1s ease infinite; z-index: 2000; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Info Modal */ .info-modal-content { max-width: 600px; max-height: 80vh; } .info-modal-body { padding: 0; } .info-tab-nav { display: flex; border-bottom: 1px solid var(--border-color); background-color: #f8f9fa; } .info-tab-link { flex: 1; padding: 12px 16px; border: none; background: none; cursor: pointer; font-weight: 500; color: #6b7280; transition: all 0.2s ease; border-bottom: 2px solid transparent; } .info-tab-link:hover { background-color: #e5e7eb; color: #374151; } .info-tab-link.active { color: #3b82f6; border-bottom-color: #3b82f6; background-color: white; } .info-tab-content { padding: 24px; max-height: 400px; overflow-y: auto; } .info-tab-pane { display: none; } .info-tab-pane.active { display: block; } .info-tab-pane h4 { margin-top: 0; margin-bottom: 16px; color: #1f2937; font-size: 1.25rem; } .info-tab-pane h5 { margin-top: 20px; margin-bottom: 12px; color: #374151; font-size: 1rem; } .info-tab-pane p { margin-bottom: 12px; line-height: 1.6; } .info-tab-pane ul { margin: 12px 0; padding-left: 20px; } .info-tab-pane li { margin-bottom: 8px; line-height: 1.5; } .info-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); } .info-link { display: inline-flex; align-items: center; gap: 8px; color: #3b82f6; text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: background-color 0.2s; } .info-link:hover { background-color: #eff6ff; text-decoration: none; } .link-icon { font-size: 16px; } .license-content { margin-top: 16px; } .license-text { width: 100%; height: 200px; margin-top: 12px; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.4; resize: vertical; background-color: #f8f9fa; } .funding-content, .help-content { line-height: 1.6; }