@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"); @import url("../theme.css"); @font-face { font-family: "sugar-magic"; src: url("../assets/fonts/sugarmagicpersonaluseonly-jemyo.otf") format("opentype"); } body { width: 360px; margin: 0; padding: 0; font-family: "Inter", Arial, sans-serif; color: var(--text-primary); background-color: var(--bg-color); font-size: 14px; line-height: 1.5; } .container { display: flex; flex-direction: column; height: 100%; } /* Header Styles */ .app-header { background: linear-gradient( 135deg, var(--header-bg-start), var(--header-bg-end) ); color: white; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: row; justify-content: space-between; } .logo-container { display: flex; align-items: center; gap: 12px; } .logo-img { width: 32px; height: 32px; object-fit: contain; filter: var(--logo-filter); } .app-title { font-family: "sugar-magic", sans-serif; margin: 0; font-size: 30px; } #header-container{ display: flex; justify-content: space-between; flex-direction: column; width: 100%; } .miniheader{ margin-top: 2px; font-size: 11px; display: flex; gap: 4px; flex-direction: row; } .author a { color: white; text-decoration: none; font-weight: 500; } .author a:hover { text-decoration: underline; } /* What's New Button */ .whats-new-button { /* position: absolute; top: 16px; right: 16px; */ background: none; border: none; color: white; font-size: 18px; cursor: pointer; padding: 5px; border-radius: 50%; transition: all 0.2s ease; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .whats-new-button:hover { background-color: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .whats-new-button::after { content: "What's New"; position: absolute; bottom: -25px; right: 0; background-color: rgba(0, 0, 0, 0.7); color: white; padding: 3px 8px; border-radius: 4px; font-size: 10px; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; pointer-events: none; white-space: nowrap; } .whats-new-button:hover::after { opacity: 1; visibility: visible; } /* Main Content Styles */ .app-content { padding: 20px; display: flex; flex-direction: column; gap: 20px; } /* Toggle Switch */ .toggle-container { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } /* Current site toggle styling */ .current-site-container { background-color: var(--secondary-bg); padding: 12px; border-radius: var(--radius-md); margin-top: -12px; position: relative; animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } .toggle-switch { position: relative; display: inline-block; width: 46px; height: 24px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #4c4c63; transition: var(--transition); border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: var(--transition); border-radius: 50%; } input:checked + .slider { background-color: var(--accent-color); } input:focus + .slider { box-shadow: 0 0 1px var(--accent-color); } input:checked + .slider:before { transform: translateX(22px); } .toggle-label { font-weight: 500; } /* Websites List */ .section-title { font-size: 16px; font-weight: 600; margin: 0 0 12px 0; color: var(--text-primary); } .features-container { background-color: var(--secondary-bg); border-radius: var(--radius-md); padding: 12px; margin-bottom: 8px; } .features-list { display: flex; flex-direction: column; gap: 8px; } .feature-toggle { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background-color: var(--bg-color); border-radius: var(--radius-sm); border: 1px solid var(--border-color); } .feature-name { font-weight: 500; color: var(--text-primary); } /* Collapsible Websites List */ .websites-container { background-color: var(--secondary-bg); border-radius: var(--radius-md); overflow: hidden; } .collapsible-button { width: 100%; padding: 12px 16px; margin-bottom: 10px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; background: none; border: none; color: var(--text-primary); font-weight: 600; cursor: pointer; transition: var(--transition); } .collapsible-button:hover { background-color: rgba(255, 255, 255, 0.1); } .collapsible-button i { transition: transform 0.3s ease; } .websites-list.collapsed { display: none; } .features-list.collapsed { display: none; } #current-site-actions.collapsed { display: none; } .collapsible-button:hover { background-color: rgba(255, 255, 255, 0.1); } /* When features are expanded, rotate the chevron */ .collapsible-button i.fa-chevron-up { transform: rotate(180deg); } .websites-list { list-style: none; padding: 0; margin: 0; max-height: 150px; overflow-y: auto; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background-color: var(--bg-color); /* Firefox scrollbar styling */ scrollbar-width: thin; scrollbar-color: var(--accent-color) transparent; } .websites-list li { padding: 10px 12px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; color: var(--text-primary); } .websites-list li:last-child { border-bottom: none; } .websites-list li:before { content: "•"; color: var(--accent-color); font-weight: bold; opacity: 0.9; } /* Action Buttons */ .actions { display: flex; flex-direction: column; gap: 10px; } .action-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: none; border-radius: var(--radius-md); font-weight: 500; cursor: pointer; transition: var(--transition); outline: none; } .action-button i { font-size: 14px; } .action-button.primary { background-color: var(--accent-color); color: white; border: none; } .action-button.primary:hover { background-color: var(--hover-color); box-shadow: 0 0 8px rgba(243, 156, 18, 0.5); } .action-button.secondary { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); } .action-button.secondary:hover { background-color: rgba(255, 255, 255, 0.1); } /* Footer */ .app-footer { margin-top: auto; padding: 14px 20px; background-color: var(--secondary-bg); border-top: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; } .footer-link { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); text-decoration: none; font-size: 12px; font-weight: 500; transition: var(--transition); } .footer-link:hover { color: var(--accent-color); opacity: 0.9; } .footer-divider { height: 16px; width: 1px; background-color: var(--border-color); } /* Current site highlighting */ .current-site { background-color: rgba(229, 152, 102, 0.1); border-left: 3px solid var(--accent-color); padding-left: 9px !important; } /* Mode Indicator */ .mode-indicator { font-size: 0.85em; color: var(--text-secondary); margin: 8px 0; font-style: italic; } .current-badge { display: inline-block; background-color: var(--accent-color); color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: 0.5px; } /* Ensure checkbox and label spacing */ .websites-list li label { display: flex; align-items: center; width: 100%; } .websites-list li label input[type="checkbox"] { margin-right: 8px; flex-shrink: 0; } /* Add a slight animation to the current site */ .current-site { animation: fadeIn 0.3s ease-in-out; } @keyframes fadeIn { from { opacity: 0.7; } to { opacity: 1; } } /* Make sure the text doesn't overflow */ .websites-list li label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Push the badge to the right */ .current-badge { margin-left: auto; margin-right: 4px; } #last-fetched-time { font-size: 0.75em; } .forcing-container { background-color: var(--secondary-bg); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; } .warning { color: var(--warning-color); margin-top: 8px; } #reload { margin-top: 16px; } .mode-hint { font-size: 0.75em; color: var(--text-secondary); margin-left: 8px; } /* Overridden feature styles */ .overridden-feature { opacity: 0.7; position: relative; } .overridden-label { color: var(--warning-color); font-size: 11px; font-style: italic; margin-left: 6px; font-weight: normal; } .disabled-toggle .slider { background-color: var(--border-color) !important; cursor: not-allowed; } .disabled-toggle input:checked + .slider { background-color: rgba(var(--accent-color), 0.5) !important; } /* Add these styles for the disabled toggle */ .toggle-switch.disabled { opacity: 0.6; cursor: not-allowed; } .toggle-switch.disabled .slider { background-color: var(--border-color); cursor: not-allowed; } .toggle-switch.disabled input:checked + .slider { background-color: rgba(249, 135, 100, 0.5); }