:root { --bg-main: #0B0E14; --bg-surface: #151A22; --bg-surface-hover: #1C232E; --text-primary: #FFFFFF; --text-secondary: #94A3B8; --text-muted: #64748B; --border-color: rgba(255, 255, 255, 0.08); --border-light: rgba(255, 255, 255, 0.15); --accent-blue: #3B82F6; --accent-blue-hover: #2563EB; --success: #10B981; --success-bg: rgba(16, 185, 129, 0.15); --cycle-1: #00E676; --cycle-2: #FFEA00; --cycle-3: #FF9100; --cycle-4: #FF1744; --bg-card-subtle: rgba(255, 255, 255, 0.03); --bg-input: rgba(0, 0, 0, 0.2); --bg-input-hover: rgba(255, 255, 255, 0.05); --bg-input-focus-ring: rgba(59, 130, 246, 0.2); --bg-btn-subtle: rgba(255, 255, 255, 0.05); --bg-btn-subtle-hover: rgba(255, 255, 255, 0.1); --bg-row-hover: rgba(255, 255, 255, 0.02); --bg-totals: rgba(0, 0, 0, 0.15); --bg-unpaid: rgba(255, 255, 255, 0.05); --cycle-header-bg: rgba(0,0,0,0.1); --body-gradient-1: rgba(59, 130, 246, 0.08); --body-gradient-2: rgba(16, 185, 129, 0.05); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3); --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.4); --transition-fast: 0.15s ease; --transition-normal: 0.25s ease; --border-radius-sm: 6px; --border-radius-md: 10px; --border-radius-lg: 16px; }
[data-theme="light"] { --bg-main: #F8FAFC; --bg-surface: #FFFFFF; --bg-surface-hover: #F1F5F9; --text-primary: #0F172A; --text-secondary: #475569; --text-muted: #94A3B8; --border-color: #E2E8F0; --border-light: #CBD5E1; --accent-blue: #2563EB; --accent-blue-hover: #1D4ED8; --success: #059669; --success-bg: rgba(16, 185, 129, 0.1); --cycle-1: #00C853; --cycle-2: #F5C300; --cycle-3: #F97316; --cycle-4: #E11D48; --bg-card-subtle: rgba(0, 0, 0, 0.02); --bg-input: rgba(0, 0, 0, 0.04); --bg-input-hover: rgba(0, 0, 0, 0.08); --bg-input-focus-ring: rgba(37, 99, 235, 0.2); --bg-btn-subtle: rgba(0, 0, 0, 0.05); --bg-btn-subtle-hover: rgba(0, 0, 0, 0.08); --bg-row-hover: rgba(0, 0, 0, 0.02); --bg-totals: rgba(0, 0, 0, 0.03); --bg-unpaid: rgba(0, 0, 0, 0.04); --cycle-header-bg: rgba(0,0,0,0.02); --body-gradient-1: rgba(37, 99, 235, 0.05); --body-gradient-2: rgba(16, 185, 129, 0.03); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.2); }
[data-theme="soft-light"] { --bg-main: #FAFAF9; --bg-surface: #FFFFFF; --bg-surface-hover: #F5F5F4; --text-primary: #1C1917; --text-secondary: #57534E; --text-muted: #A8A29E; --border-color: #E7E5E4; --border-light: #D6D3D0; --accent-blue: #0284C7; --accent-blue-hover: #0369A1; --success: #059669; --success-bg: rgba(5, 150, 105, 0.1); --cycle-1: #10B981; --cycle-2: #F59E0B; --cycle-3: #EA580C; --cycle-4: #EF4444; --bg-card-subtle: rgba(0, 0, 0, 0.015); --bg-input: rgba(0, 0, 0, 0.03); --bg-input-hover: rgba(0, 0, 0, 0.06); --bg-input-focus-ring: rgba(2, 132, 199, 0.2); --bg-btn-subtle: rgba(0, 0, 0, 0.04); --bg-btn-subtle-hover: rgba(0, 0, 0, 0.08); --bg-row-hover: rgba(0, 0, 0, 0.015); --bg-totals: rgba(0, 0, 0, 0.02); --bg-unpaid: rgba(0, 0, 0, 0.03); --cycle-header-bg: rgba(0,0,0,0.015); --body-gradient-1: rgba(2, 132, 199, 0.03); --body-gradient-2: rgba(5, 150, 105, 0.02); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08); --shadow-glow: 0 0 15px rgba(2, 132, 199, 0.2); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background-color: var(--bg-main); background-image: radial-gradient(circle at 15% 15%, var(--body-gradient-1) 0%, transparent 40%), radial-gradient(circle at 85% 85%, var(--body-gradient-2) 0%, transparent 40%); color: var(--text-primary); line-height: 1.5; min-height: 100vh; transition: background-color var(--transition-normal), color var(--transition-normal); }
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
h3 { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); }
h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; }
p { color: var(--text-secondary); }
/* Utilities */
.hidden { display: none !important; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.align-end { align-items: flex-end; }
.border-lg { max-width: 650px !important; }
.app-container { max-width: 1400px; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.app-header { display: flex; justify-content: space-between; align-items: center; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 1.5rem 2rem; box-shadow: var(--shadow-md); flex-wrap: wrap; gap: 1.5rem; transition: var(--transition-normal); }
.header-title h1 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.header-logo { width: 42px; height: 42px; object-fit: contain; }
.header-title p { font-size: 0.9rem; }
.user-controls { display: flex; align-items: center; gap: 1rem; background: var(--bg-card-subtle); padding: 0.5rem 1rem; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); }
.welcome-text { font-size: 0.9rem; color: var(--text-secondary); }
.welcome-text strong { color: var(--text-primary); font-weight: 600; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.theme-selector { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.theme-btn { background: var(--bg-card-subtle); border: 1px solid var(--border-color); color: var(--text-secondary); width: 32px; height: 32px; border-radius: var(--border-radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast); }
.theme-btn:hover { color: var(--text-primary); border-color: var(--border-light); background: var(--bg-btn-subtle-hover); }
.theme-btn.active { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.global-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.stat-card { background: var(--bg-card-subtle); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; min-width: 200px; transition: var(--transition-normal); }
.stat-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.stat-card.total-bills .stat-icon { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.stat-card.income .stat-icon { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.stat-card.remaining .stat-icon { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.stat-card.deduction .stat-icon { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.stat-details { display: flex; flex-direction: column; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }
.input-wrapper { display: flex; align-items: center; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--border-radius-sm); padding: 0 0.5rem; transition: var(--transition-normal); }
.input-wrapper:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 2px var(--bg-input-focus-ring); }
.input-wrapper input { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0.75rem 0.5rem !important; }
.input-wrapper .currency { color: var(--text-secondary); font-weight: 500; }
input.inline-input { background: transparent; border: none; color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700; padding: 0.25rem 0.5rem; width: 100px; outline: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.cycles-container { display: flex; flex-direction: column; gap: 1.5rem; }
.cycle-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); transition: var(--transition-normal); }
.cycle-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-light); }
.cycle-indicator { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.cycle-card[data-cycle="1"] .cycle-indicator { background-color: var(--cycle-1); box-shadow: 0 0 10px rgba(0, 230, 118, 0.4); }
.cycle-card[data-cycle="2"] .cycle-indicator { background-color: var(--cycle-2); box-shadow: 0 0 10px rgba(255, 234, 0, 0.4); }
.cycle-card[data-cycle="3"] .cycle-indicator { background-color: var(--cycle-3); box-shadow: 0 0 10px rgba(255, 145, 0, 0.4); }
.cycle-card[data-cycle="4"] .cycle-indicator { background-color: var(--cycle-4); box-shadow: 0 0 10px rgba(255, 23, 68, 0.4); }
.cycle-header { padding: 1.25rem 1.5rem 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); background: var(--cycle-header-bg); }
.add-btn { background: var(--bg-btn-subtle); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.5rem 1rem; border-radius: var(--border-radius-sm); font-family: inherit; font-weight: 500; font-size: 0.85rem; cursor: pointer; transition: var(--transition-normal); display: flex; align-items: center; gap: 0.5rem; }
.add-btn:hover { background: var(--bg-surface-hover); border-color: var(--accent-blue); color: var(--accent-blue); }
.btn { padding: 0.6rem 1.2rem; border-radius: var(--border-radius-sm); font-family: inherit; font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: var(--transition-normal); border: none; outline: none; }
.btn-primary { background: var(--accent-blue); color: white; }
.btn-primary:hover { background: var(--accent-blue-hover); box-shadow: var(--shadow-glow); }
.btn-secondary { background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-btn-subtle-hover); }
.btn-icon { background: transparent; border: none; color: var(--text-muted); width: 32px; height: 32px; border-radius: var(--border-radius-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-fast); }
.btn-icon:hover { color: var(--text-primary); background: var(--bg-btn-subtle-hover); }
.btn-icon.delete { opacity: 0; }
tr:hover .btn-icon.delete { opacity: 1; }
.btn-icon.delete:hover { color: var(--cycle-4); background: rgba(255, 23, 68, 0.15); }
.table-responsive { overflow-x: auto; }
.accounts-table { width: 100%; border-collapse: collapse; text-align: left; }
.accounts-table th { padding: 1rem 1rem 1rem 2rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); font-weight: 800; border-bottom: 2px solid var(--border-color); }
.accounts-table td { padding: 1rem 1rem 1rem 2rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.accounts-table tbody tr { transition: var(--transition-fast); }
.accounts-table tbody tr:hover { background: var(--bg-row-hover); }
.col-account { width: 30%; font-weight: 500; }
.col-amt { width: 15%; font-family: monospace; font-size: 1.05rem; }
.col-status { width: 15%; text-align: center; }
.col-due { width: 10%; color: var(--text-secondary); text-align: center; }
.col-note { width: 25%; color: var(--text-secondary); font-size: 0.9rem; }
.col-actions { width: 5%; padding-right: 1.5rem !important; text-align: right; }
.status-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; cursor: pointer; user-select: none; transition: var(--transition-fast); }
.status-paid { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-unpaid { background: var(--bg-unpaid); color: var(--text-secondary); border: 1px solid var(--border-light); }
.status-badge:hover { opacity: 0.8; }
.totals-row td { background: var(--bg-totals); border-bottom: none; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.totals-row .col-account { color: var(--text-secondary); font-size: 0.85rem; letter-spacing: 0.05em; }
.cycle-total-box { display: inline-flex; align-items: center; background: rgba(255, 23, 68, 0.15) !important; border-radius: var(--border-radius-md); padding: 0.6rem 1.25rem; gap: 1rem; border: 1.5px solid rgba(255, 23, 68, 0.3) !important; transition: var(--transition-normal); white-space: nowrap; width: fit-content; }
.cycle-total-amt { font-family: monospace; font-size: 1.6rem; font-weight: 800; color: var(--cycle-4) !important; text-shadow: 0 0 10px rgba(255, 23, 68, 0.3); }
.cycle-total-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.cycle-totals-cell { padding-right: 2rem !important; }
.cycle-totals-container { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; }
.cycle-paid-rem-box { display: inline-flex; align-items: center; background: rgba(59, 130, 246, 0.1); border-radius: var(--border-radius-md); padding: 0.75rem 1.5rem; gap: 1.25rem; border: 1px solid rgba(59, 130, 246, 0.2); transition: var(--transition-normal); }
.summary-paid-rem-val { font-family: monospace; font-size: 1.75rem; font-weight: 800; color: var(--accent-blue); text-shadow: 0 0 10px rgba(59, 130, 246, 0.2); }
.summary-paid-rem-note { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.weekly-summary-box { display: inline-flex; align-items: center; background: rgba(16, 185, 129, 0.1); border-radius: var(--border-radius-md); padding: 0.75rem 1.5rem; gap: 1.25rem; border: 1px solid rgba(16, 185, 129, 0.2); transition: var(--transition-normal); }
.summary-rem-val { font-family: monospace; font-size: 1.75rem; font-weight: 800; color: var(--success); text-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
.summary-rem-note { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 1; transition: var(--transition-normal); }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--border-radius-lg); width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); transform: translateY(0); transition: var(--transition-normal); }
.modal-overlay.hidden .modal { transform: translateY(20px); }
#login-overlay { background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('login-bg.jpg') center / cover no-repeat; backdrop-filter: none; justify-content: flex-end; padding-right: 10%; z-index: 1000; }
.login-title-image { position: absolute; left: 8%; top: 15%; max-width: 500px; height: auto; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.7)); z-index: 1001; }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-modal-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 1.25rem; cursor: pointer; transition: var(--transition-fast); }
.close-modal-btn:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; }
.login-modal .form-group input:not([type="checkbox"]) { font-size: 1.4rem; font-weight: 700; padding: 1.2rem 1.5rem; background: rgba(0, 0, 0, 0.5); border: 2px solid var(--accent-blue); color: var(--text-primary); letter-spacing: 0.02em; }
.login-modal .form-group input:-webkit-autofill { font-size: 1.4rem !important; -webkit-text-fill-color: var(--text-primary) !important; transition: background-color 5000s ease-in-out 0s; }
.form-error { background: rgba(225, 29, 72, 0.1); color: var(--cycle-4); border: 1px solid rgba(225, 29, 72, 0.2); padding: 0.75rem; border-radius: var(--border-radius-sm); margin-bottom: 1rem; font-size: 0.9rem; text-align: center; }
.modal-divider { border: none; height: 1px; background: var(--border-color); margin: 1.5rem 0; }
/* User Management Specifics */
.users-table { width: 100%; border-collapse: collapse; text-align: left; margin-bottom: 1rem; }
.users-table th { padding: 0.75rem 1rem; border-bottom: 2px solid var(--border-color); color: var(--text-primary); font-size: 0.85rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.05em; }
.users-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.users-table tr:last-child td { border-bottom: none; }
.users-list-container { max-height: 250px; overflow-y: auto; background: var(--bg-card-subtle); border-radius: var(--border-radius-sm); border: 1px solid var(--border-color); }
.role-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.role-admin { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }
.role-user { background: var(--bg-btn-subtle); color: var(--text-secondary); }
.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 500; }
.form-group input:not([type="checkbox"]), .form-group textarea, .form-group select { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); padding: 0.75rem; color: var(--text-primary); font-family: 'Outfit', sans-serif; font-size: 0.95rem; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast); outline: none; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px var(--bg-input-focus-ring); }
.form-group select option { background: var(--bg-surface); color: var(--text-primary); }
.custom-checkbox { display: flex; align-items: center; cursor: pointer; font-size: 0.95rem; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: relative; height: 20px; width: 20px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 4px; margin-right: 10px; transition: var(--transition-fast); }
.custom-checkbox:hover input ~ .checkmark { background: var(--bg-input-hover); }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--success); border-color: var(--success); }
.checkmark:after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
@media (max-width: 1024px) {
    .global-stats { justify-content: space-between; }
    .stat-card { flex: 1 1 calc(50% - 0.75rem); }
    .login-title-image { max-width: 350px; }
}
@media (max-width: 768px) {
    .app-header { flex-direction: column; align-items: stretch; }
    .stat-card { flex: 1 1 100%; }
    .accounts-table th, .accounts-table td { padding: 0.75rem 0.5rem; }
    .col-due, .col-note { display: none; }
    #login-overlay { justify-content: center; padding-left: 0; padding-right: 0; }
    .login-title-image { display: none; }
}

/* Bill Rendering Styles */
.bill-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.bill-link:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

.bill-name {
    font-weight: 600;
}

/* Inline Editing Styles */
.inline-edit {
    background: transparent;
    border: 1px solid transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 2px 4px;
    width: 100%;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.inline-edit:hover {
    background: var(--bg-card-subtle);
    border-color: var(--border-light);
}

.inline-edit:focus {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

.col-amt .inline-edit {
    text-align: inherit;
    font-weight: 500;
}

.col-due .inline-edit {
    font-size: 0.85rem;
    text-align: center;
}

.col-account .inline-edit {
    font-weight: 600;
}

.col-amt, .col-due, .col-status {
    padding: 0.75rem 1rem !important; /* Move Amount, Due, and Status columns to the left and center them */
}

.col-account {
    padding: 0 0 0 2rem !important; /* Restore left padding for alignment */
}

.accounts-table td {
    padding: 0.75rem 1rem;
}
.accounts-table tbody tr.row-paid {
    background-color: rgba(59, 130, 246, 0.08); /* Subtle Blue Hue */
}

.accounts-table tbody tr.row-paid:hover {
    background-color: rgba(59, 130, 246, 0.12);
}

/* Layout with Timeline */
.app-main-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.timeline-sidebar {
    width: 60px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    height: fit-content;
}

.timeline-track {
    width: 4px;
    background: var(--border-color);
    border-radius: 10px;
    position: relative;
    /* Height will be set via inline style in JS based on cycles-container */
    min-height: 400px;
}

.timeline-day {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-day.cycle-point {
    width: 12px;
    height: 12px;
    background: var(--bg-surface);
    border: 3px solid var(--text-secondary);
    z-index: 3;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-blue);
    border: 5px solid var(--bg-surface);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-blue);
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-marker::after {
    content: 'TODAY';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.timeline-segment {
    position: absolute;
    left: 0;
    width: 100%;
    opacity: 0.2;
    border-radius: 10px;
    z-index: 1;
}

.timeline-segment[data-cycle="1"] { background-color: var(--cycle-1); }
.timeline-segment[data-cycle="2"] { background-color: var(--cycle-2); }
.timeline-segment[data-cycle="3"] { background-color: var(--cycle-3); }
.timeline-segment[data-cycle="4"] { background-color: var(--cycle-4); }

.timeline-date-label {
    position: absolute;
    right: 20px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 1100px) {
    .timeline-sidebar { display: none; }
    .app-main-layout { display: block; }
}
