/* ===== Reset & Base ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --primary: #1cc29f; --primary-dark: #17a88a; --primary-light: #e8f8f4; --danger: #e74c3c; --danger-light: #fdecea; --orange: #e67e22; --orange-light: #fef5ec; --bg: #f5f7fa; --white: #ffffff; --text: #333333; --text-light: #6b7280; --text-lighter: #9ca3af; --border: #e5e7eb; --border-light: #f0f0f0; --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08); --shadow: 0 2px 8px rgba(0, 0, 0, 0.1); --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12); --radius: 10px; --radius-sm: 6px; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; } a { color: var(--primary); text-decoration: none; } a:hover { color: var(--primary-dark); } /* ===== App Layout ===== */ .app { min-height: 100vh; display: flex; flex-direction: column; } .app-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; height: 60px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); } .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; } .logo-icon { background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; } .logo-text { font-size: 22px; font-weight: 700; color: var(--text); } .app-main { flex: 1; max-width: 960px; width: 100%; margin: 0 auto; padding: 32px 24px; } /* ===== Cards ===== */ .card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow: hidden; } .card-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; } .card-header h2 { font-size: 18px; font-weight: 600; color: var(--text); } .card-body { padding: 20px 24px; } /* ===== Buttons ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover:not(:disabled) { background: var(--primary-dark); color: white; box-shadow: var(--shadow); } .btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); } .btn-secondary:hover:not(:disabled) { background: var(--border-light); } .btn-danger { background: var(--danger-light); color: var(--danger); border: 1px solid transparent; } .btn-danger:hover:not(:disabled) { background: var(--danger); color: white; } .btn-sm { padding: 6px 12px; font-size: 13px; } .btn-orange { background: var(--orange); color: white; } .btn-orange:hover:not(:disabled) { background: #cf6d17; color: white; } /* ===== Forms ===== */ .form-group { margin-bottom: 18px; } .form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; } .form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; } .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(28, 194, 159, 0.15); } .form-input::placeholder { color: var(--text-lighter); } select.form-input { cursor: pointer; } .inline-form { display: flex; gap: 10px; align-items: flex-end; } .inline-form .form-group { margin-bottom: 0; flex: 1; } /* ===== Checkbox List ===== */ .checkbox-list { display: flex; flex-wrap: wrap; gap: 8px; } .checkbox-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.15s; font-size: 14px; } .checkbox-item:hover { border-color: var(--primary); } .checkbox-item.checked { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); } .checkbox-item input[type='checkbox'] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; } /* ===== Dashboard ===== */ .dashboard-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; } @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } } .section-title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 14px; } .groups-list { display: flex; flex-direction: column; gap: 12px; } .group-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: all 0.2s; box-shadow: var(--shadow-sm); } .group-card:hover { box-shadow: var(--shadow); border-color: var(--primary); color: var(--text); transform: translateY(-1px); } .group-card-icon { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 18px; flex-shrink: 0; } .group-card-info { flex: 1; min-width: 0; } .group-card-name { font-weight: 600; font-size: 16px; margin-bottom: 2px; } .group-card-members { font-size: 13px; color: var(--text-light); } .group-card-arrow { color: var(--text-lighter); font-size: 18px; } .sidebar .card { margin-bottom: 16px; } .user-list { list-style: none; padding: 0; } .user-list li { padding: 10px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; font-size: 14px; } .user-list li:last-child { border-bottom: none; } .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0; } .user-info-name { font-weight: 500; } .user-info-email { font-size: 12px; color: var(--text-light); } /* ===== Empty State ===== */ .empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); } .empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; } .empty-state p { font-size: 15px; } /* ===== Group Detail ===== */ .group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; } .group-header h1 { font-size: 28px; font-weight: 700; } .group-header-actions { display: flex; gap: 10px; flex-wrap: wrap; } .members-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; } .member-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--primary-light); color: var(--primary-dark); border-radius: 20px; font-size: 13px; font-weight: 500; } .member-chip .user-avatar { width: 24px; height: 24px; font-size: 11px; } .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; } @media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } } /* ===== Balances ===== */ .balance-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; } .balance-item:last-child { border-bottom: none; } .balance-owes { color: var(--danger); font-weight: 600; } .balance-owed { color: var(--primary); font-weight: 600; } .balance-arrow { color: var(--text-lighter); margin: 0 6px; } .balance-amount-negative { color: var(--orange); font-weight: 700; font-size: 15px; } .balance-amount-positive { color: var(--primary); font-weight: 700; font-size: 15px; } /* ===== Expenses ===== */ .expense-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); } .expense-item:last-child { border-bottom: none; } .expense-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: var(--text-light); border: 1px solid var(--border); } .expense-info { flex: 1; min-width: 0; } .expense-desc { font-weight: 600; font-size: 15px; margin-bottom: 2px; } .expense-meta { font-size: 13px; color: var(--text-light); } .expense-amount { font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; } .expense-actions { display: flex; align-items: center; gap: 8px; } /* ===== Settle Modal ===== */ .settle-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; z-index: 200; animation: fadeIn 0.2s; } .settle-modal { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; margin: 20px; animation: slideUp 0.25s; } .settle-modal .card-header { border-bottom: 1px solid var(--border-light); } .settle-modal .card-body { padding: 24px; } .settle-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* ===== Create Group / Add Expense Page ===== */ .page-form { max-width: 560px; margin: 0 auto; } .page-form h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; } .page-form .card-body { padding: 28px; } .form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; } /* ===== Back Link ===== */ .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-light); margin-bottom: 20px; text-decoration: none; } .back-link:hover { color: var(--primary); } /* ===== Loading & Error ===== */ .loading { text-align: center; padding: 40px; color: var(--text-light); font-size: 15px; } .error-msg { background: var(--danger-light); color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid rgba(231, 76, 60, 0.2); } .success-msg { background: var(--primary-light); color: var(--primary-dark); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }