/* ===== DASHBOARD LAYOUT ===== */ .dashboard-layout { display: flex; min-height: 100vh; background: var(--bg-primary); font-family: var(--font); color: var(--text-primary); } /* ===== SIDEBAR ===== */ .sidebar { width: 220px; min-height: 100vh; background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; z-index: 100; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); } .sidebar-header { padding: 28px 24px 32px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--sidebar-footer-border); } .sidebar-logo { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(88, 166, 255, 0.08); border-radius: 10px; border: 1px solid rgba(88, 166, 255, 0.15); } .sidebar-logo svg { width: 20px; height: 20px; color: var(--accent); } .sidebar-title { font-size: 0.95rem; font-weight: 700; letter-spacing: 2px; color: var(--text-primary); } .sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 400; transition: all var(--transition); position: relative; cursor: pointer; } .nav-item:hover { color: var(--text-primary); background: var(--table-row-hover); } .nav-item.active { color: var(--accent); background: rgba(88, 166, 255, 0.08); font-weight: 500; } .nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 60%; background: var(--accent); border-radius: 0 4px 4px 0; } .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; } .sidebar-footer { padding: 16px 12px 24px; border-top: 1px solid var(--sidebar-footer-border); } .nav-item.logout { color: var(--text-muted); } .nav-item.logout:hover { color: var(--danger); background: rgba(248, 81, 73, 0.06); } /* ===== MAIN CONTENT ===== */ .main-content { flex: 1; margin-left: 220px; min-height: 100vh; position: relative; overflow-x: hidden; } /* Subtle background gradient overlay */ .main-content::before { content: ''; position: fixed; top: 0; left: 220px; right: 0; bottom: 0; background: radial-gradient(ellipse 600px 400px at 30% 20%, rgba(88, 166, 255, 0.03), transparent), radial-gradient(ellipse 500px 350px at 70% 80%, rgba(139, 92, 246, 0.02), transparent); pointer-events: none; z-index: 0; } .content-wrapper { padding: 40px 48px; position: relative; z-index: 1; } /* ===== PAGE HEADER ===== */ .page-header { margin-bottom: 36px; } .page-title { font-size: 1.8rem; font-weight: 700; letter-spacing: 1.5px; color: var(--text-primary); margin-bottom: 6px; } .page-subtitle { font-size: 0.88rem; font-weight: 300; color: var(--text-secondary); } /* ===== CONTENT CARD ===== */ .content-card { background: var(--log-card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 36px 40px; position: relative; overflow: hidden; } .content-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); } /* ===== FORM STYLES ===== */ .form-group { margin-bottom: 24px; } .form-label { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 500; color: var(--text-primary); margin-bottom: 10px; } .form-label svg { width: 16px; height: 16px; color: var(--text-secondary); } .form-input { width: 100%; max-width: 520px; padding: 12px 16px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 0.88rem; font-weight: 400; outline: none; transition: all var(--transition); } .form-input::placeholder { color: var(--text-muted); font-weight: 300; } .form-input:focus { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.02); } /* Select / Dropdown */ .form-select { width: 100%; max-width: 520px; padding: 12px 16px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font); font-size: 0.88rem; font-weight: 300; outline: none; cursor: pointer; transition: all var(--transition); -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; } .form-select:focus { border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.05); } .form-select option { background: var(--bg-secondary); color: var(--text-primary); } /* Date Row */ .date-row { display: flex; gap: 12px; max-width: 520px; } .date-row .form-select { flex: 1; max-width: none; } /* Form Submit Button */ .btn-submit { display: flex; align-items: center; justify-content: center; padding: 13px 40px; margin: 32px auto 0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; color: var(--accent); font-family: var(--font); font-size: 0.88rem; font-weight: 600; letter-spacing: 2.5px; cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; } .btn-submit::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(88, 166, 255, 0.06), transparent); opacity: 0; transition: opacity var(--transition); } .btn-submit:hover { background: rgba(88, 166, 255, 0.1); border-color: rgba(88, 166, 255, 0.25); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .btn-submit:hover::before { opacity: 1; } .btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); } /* ===== ACCESS LOG TABLE ===== */ .log-card { background: var(--log-card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; position: relative; } .log-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); } .log-card-header { padding: 24px 32px 16px; font-size: 1.1rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0.5px; } .log-table { width: 100%; border-collapse: collapse; } .log-table thead th { padding: 12px 32px; text-align: left; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.5px; border-bottom: 1px solid var(--table-border); } .log-table tbody tr { transition: background var(--transition); border-bottom: 1px solid var(--table-row-border); } .log-table tbody tr:last-child { border-bottom: none; } .log-table tbody tr:hover { background: var(--table-row-hover); } .log-table tbody td { padding: 16px 32px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 400; } /* Status Badges */ .badge { display: inline-block; padding: 4px 14px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; } .badge-success { background: rgba(63, 185, 80, 0.15); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.25); } .badge-failed { background: rgba(248, 81, 73, 0.15); color: #f85149; border: 1px solid rgba(248, 81, 73, 0.25); } /* ===== TOAST (reuse) ===== */ .toast { position: fixed; top: 24px; right: 24px; padding: 14px 24px; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 500; color: #fff; z-index: 1000; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(16px); max-width: 360px; } .toast.show { transform: translateX(0); } .toast.success { background: rgba(63, 185, 80, 0.9); border: 1px solid rgba(63, 185, 80, 0.4); box-shadow: 0 8px 32px rgba(63, 185, 80, 0.2); } .toast.error { background: rgba(248, 81, 73, 0.9); border: 1px solid rgba(248, 81, 73, 0.4); box-shadow: 0 8px 32px rgba(248, 81, 73, 0.2); } .toast.info { background: rgba(88, 166, 255, 0.9); border: 1px solid rgba(88, 166, 255, 0.4); box-shadow: 0 8px 32px rgba(88, 166, 255, 0.2); } /* ===== ACTION BUTTONS ===== */ .action-buttons { display: flex; gap: 8px; } .btn-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: all var(--transition); color: var(--text-muted); } .btn-action:hover { transform: translateY(-1px); } .btn-edit:hover { background: rgba(88, 166, 255, 0.12); border-color: rgba(88, 166, 255, 0.3); color: var(--accent); } .btn-delete:hover { background: rgba(248, 81, 73, 0.12); border-color: rgba(248, 81, 73, 0.3); color: var(--danger); } /* ===== EMPTY STATE ===== */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; color: var(--text-muted); } .empty-state svg { margin-bottom: 16px; opacity: 0.4; } .empty-state p { font-size: 0.9rem; font-weight: 400; } /* ===== MODAL ===== */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 500; animation: fadeIn 0.2s ease-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .modal-card { background: var(--log-card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 32px 36px; width: 100%; max-width: 480px; position: relative; animation: modalSlideUp 0.3s ease-out; } .modal-card-sm { max-width: 400px; } @keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; } .modal-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0.5px; } .modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; line-height: 1; transition: color var(--transition); } .modal-close:hover { color: var(--text-primary); } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; } .btn-cancel { padding: 10px 24px; background: var(--btn-bg); border: 1px solid var(--filter-border); border-radius: 50px; color: var(--text-secondary); font-family: var(--font); font-size: 0.84rem; font-weight: 500; cursor: pointer; transition: all var(--transition); } .btn-cancel:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); } .btn-danger { padding: 10px 24px; background: rgba(248, 81, 73, 0.15); border: 1px solid rgba(248, 81, 73, 0.3); border-radius: 50px; color: #f85149; font-family: var(--font); font-size: 0.84rem; font-weight: 600; letter-spacing: 1.5px; cursor: pointer; transition: all var(--transition); } .btn-danger:hover { background: rgba(248, 81, 73, 0.25); border-color: rgba(248, 81, 73, 0.5); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(248, 81, 73, 0.15); } /* ===== SUMMARY CARDS ===== */ .summary-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; } .summary-card { background: var(--log-card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden; transition: all var(--transition); } .summary-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); } .summary-card:hover { border-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); } .summary-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; } .summary-icon svg { width: 22px; height: 22px; } .summary-total .summary-icon { background: rgba(88, 166, 255, 0.1); border: 1px solid rgba(88, 166, 255, 0.2); color: var(--accent); } .summary-success .summary-icon { background: rgba(63, 185, 80, 0.1); border: 1px solid rgba(63, 185, 80, 0.2); color: #3fb950; } .summary-failed .summary-icon { background: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.2); color: #f85149; } .summary-info { display: flex; flex-direction: column; gap: 2px; } .summary-value { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; } .summary-label { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.5px; } /* ===== FILTER BAR ===== */ .filter-bar { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; } .filter-group { display: flex; flex-direction: column; gap: 6px; } .filter-search-group { flex: 1; min-width: 200px; } .filter-label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; } .filter-select { padding: 10px 36px 10px 14px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font); font-size: 0.84rem; font-weight: 400; outline: none; cursor: pointer; transition: all var(--transition); -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 12px center; min-width: 130px; } .filter-select:focus { border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.05); } .filter-select option { background: var(--bg-secondary); color: var(--text-primary); } .filter-search-wrapper { position: relative; } .filter-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; } .filter-search { width: 100%; padding: 10px 14px 10px 38px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font); font-size: 0.84rem; font-weight: 400; outline: none; transition: all var(--transition); } .filter-search::placeholder { color: var(--text-muted); font-weight: 300; } .filter-search:focus { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.02); } .filter-actions { margin-left: auto; } .btn-clear-logs { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: rgba(248, 81, 73, 0.08); border: 1px solid rgba(248, 81, 73, 0.2); border-radius: var(--radius-sm); color: #f85149; font-family: var(--font); font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all var(--transition); } .btn-clear-logs:hover { background: rgba(248, 81, 73, 0.15); border-color: rgba(248, 81, 73, 0.4); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(248, 81, 73, 0.1); } /* ===== LOG ROW ANIMATION ===== */ .log-row-animate { animation: logRowFadeIn 0.4s ease-out both; } @keyframes logRowFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ===== PAGINATION ===== */ .pagination-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; border-top: 1px solid var(--pagination-border); flex-wrap: wrap; gap: 12px; } .pagination-info { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; } .pagination-controls { display: flex; align-items: center; gap: 6px; } .page-numbers { display: flex; gap: 4px; } .page-btn { padding: 6px 14px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: 6px; color: var(--text-secondary); font-family: var(--font); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all var(--transition); min-width: 36px; text-align: center; } .page-btn:hover:not(:disabled) { background: rgba(88, 166, 255, 0.08); border-color: rgba(88, 166, 255, 0.2); color: var(--accent); } .page-btn:disabled { opacity: 0.3; cursor: not-allowed; } .page-btn-active { background: rgba(88, 166, 255, 0.12) !important; border-color: rgba(88, 166, 255, 0.35) !important; color: var(--accent) !important; font-weight: 600; } /* ===== ANIMATIONS ===== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .content-wrapper { animation: fadeInUp 0.5s ease-out; } /* ===== MOBILE TOP BAR ===== */ .mobile-topbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: var(--topbar-bg); border-bottom: 1px solid var(--topbar-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 200; align-items: center; padding: 0 16px; gap: 12px; } .mobile-topbar-logo { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(88, 166, 255, 0.08); border-radius: 8px; border: 1px solid rgba(88, 166, 255, 0.15); flex-shrink: 0; } .mobile-topbar-logo svg { width: 18px; height: 18px; color: var(--accent); } .mobile-topbar-title { font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; color: var(--text-primary); flex: 1; } .mobile-topbar-page { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.5px; } /* ===== MOBILE BOTTOM NAV ===== */ .mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px; background: var(--topbar-bg); border-top: 1px solid var(--topbar-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 200; align-items: center; justify-content: space-around; padding: 0 8px; padding-bottom: env(safe-area-inset-bottom, 0px); } .mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 16px; border-radius: 10px; color: var(--text-muted); text-decoration: none; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.5px; transition: all var(--transition); flex: 1; min-height: 48px; cursor: pointer; background: none; border: none; font-family: var(--font); } .mobile-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; } .mobile-nav-item.active { color: var(--accent); } .mobile-nav-item.active svg { filter: drop-shadow(0 0 6px rgba(88, 166, 255, 0.4)); } .mobile-nav-item:hover { color: var(--text-secondary); background: rgba(255, 255, 255, 0.03); } .mobile-nav-item.logout-nav { color: var(--text-muted); } .mobile-nav-item.logout-nav:hover, .mobile-nav-item.logout-nav:active { color: var(--danger); } /* ===== TABLE SCROLL WRAPPER ===== */ .table-scroll-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -1px; } .table-scroll-wrapper .log-table { min-width: 480px; } /* ===== RESPONSIVE: TABLET (768px) ===== */ @media (max-width: 768px) { /* Hide desktop sidebar */ .sidebar { display: none; } /* Show mobile elements */ .mobile-topbar { display: flex; } .mobile-bottom-nav { display: flex; } /* Main content adjustments */ .main-content { margin-left: 0; padding-top: 56px; padding-bottom: 64px; } .main-content::before { left: 0; } .content-wrapper { padding: 20px 16px; } .page-header { margin-bottom: 20px; } .page-title { font-size: 1.3rem; letter-spacing: 1px; } .page-subtitle { font-size: 0.82rem; } /* Content card */ .content-card { padding: 20px 16px; } /* Table → horizontal scroll */ .log-card { overflow: visible; } .log-table { min-width: 480px; } .log-card > .log-table, .log-card > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .log-table thead th { padding: 10px 14px; font-size: 0.75rem; white-space: nowrap; } .log-table tbody td { padding: 12px 14px; font-size: 0.82rem; white-space: nowrap; } /* Log card scroll hint */ .log-card-header { padding: 18px 20px 12px; font-size: 0.95rem; } /* Summary cards - 2 columns on tablet */ .summary-cards { grid-template-columns: 1fr 1fr; gap: 12px; } .summary-card { padding: 16px 18px; gap: 12px; } .summary-icon { width: 40px; height: 40px; } .summary-icon svg { width: 18px; height: 18px; } .summary-value { font-size: 1.3rem; } .summary-label { font-size: 0.73rem; } /* Filter bar */ .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; } .filter-actions { margin-left: 0; } .filter-select { min-width: unset; width: 100%; } .filter-search { width: 100%; } /* Date row */ .date-row { flex-direction: row; gap: 8px; } /* Form */ .form-input, .form-select { max-width: 100%; font-size: 16px; /* prevent iOS zoom */ padding: 13px 16px; } .form-layout { flex-direction: column; gap: 20px; } .image-section { display: none; /* hide image on mobile to save space */ } .form-section { flex: unset; width: 100%; } /* Modal */ .modal-card { margin: 16px; padding: 24px 20px; max-width: calc(100vw - 32px); } .modal-actions { flex-direction: row; gap: 8px; } .btn-cancel, .btn-danger { padding: 10px 18px; font-size: 0.8rem; } /* Toast */ .toast { right: 12px; left: 12px; max-width: unset; font-size: 0.82rem; padding: 12px 16px; } /* Submit button */ .btn-submit { width: 100%; padding: 14px 24px; font-size: 0.85rem; } } /* ===== RESPONSIVE: MOBILE (480px) ===== */ @media (max-width: 480px) { .content-wrapper { padding: 16px 12px; } .page-title { font-size: 1.1rem; } /* Summary cards → 1 column */ .summary-cards { grid-template-columns: 1fr; gap: 10px; } .summary-card { padding: 14px 16px; } /* Table cells smaller */ .log-table thead th { padding: 8px 12px; font-size: 0.72rem; } .log-table tbody td { padding: 10px 12px; font-size: 0.8rem; } .log-card-header { padding: 16px 16px 10px; font-size: 0.9rem; } /* Date row */ .date-row { flex-direction: column; gap: 8px; } .date-row .form-select { max-width: 100%; } /* Filter */ .filter-group, .filter-search-group { width: 100%; } .btn-clear-logs { width: 100%; justify-content: center; } /* Topbar */ .mobile-topbar-page { display: none; } /* Bottom nav label smaller */ .mobile-nav-item { font-size: 0.6rem; padding: 6px 8px; } .mobile-nav-item svg { width: 20px; height: 20px; } } /* ===== THEME TOGGLE BUTTON ===== */ .theme-toggle-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; margin-bottom: 8px; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: 8px; color: var(--text-secondary); font-family: var(--font); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all var(--transition); text-align: left; } .theme-toggle-btn:hover { background: var(--btn-bg-hover); color: var(--text-primary); border-color: var(--accent); transform: translateY(-1px); } .theme-toggle-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.5s ease; } .theme-toggle-btn:hover svg { transform: rotate(20deg); } /* Toggle switch pill */ .theme-pill { margin-left: auto; width: 32px; height: 18px; background: var(--filter-border); border-radius: 9px; position: relative; transition: background var(--transition); flex-shrink: 0; } .theme-pill::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--text-muted); border-radius: 50%; transition: all var(--transition); } html.light .theme-pill { background: var(--accent); } html.light .theme-pill::after { left: 17px; background: #fff; } /* Mobile theme toggle di topbar */ .mobile-theme-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--filter-bg); border: 1px solid var(--filter-border); border-radius: 8px; color: var(--text-secondary); cursor: pointer; transition: all var(--transition); margin-left: auto; flex-shrink: 0; } .mobile-theme-btn:hover { color: var(--accent); border-color: var(--accent); } .mobile-theme-btn svg { width: 18px; height: 18px; transition: transform 0.5s ease; } .mobile-theme-btn:hover svg { transform: rotate(20deg); } /* Light mode body background */ html.light body { background: var(--bg-primary); } html.light body::before { background: radial-gradient(ellipse 600px 400px at 20% 30%, rgba(37, 99, 235, 0.06), transparent), radial-gradient(ellipse 500px 350px at 80% 70%, rgba(139, 92, 246, 0.04), transparent); } /* Light mode autofill fix */ html.light input:-webkit-autofill, html.light input:-webkit-autofill:hover, html.light input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0.95) inset !important; -webkit-text-fill-color: rgba(15,23,42,0.9) !important; } }