/* Mercury Banking Clone - App Styles - Fully Responsive */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #FAFAFA;
  color: #1A1A1A;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 32px;
  background: #FAFAFA;
  -webkit-overflow-scrolling: touch;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 16px;
  color: #6B7280;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}

.sidebar-overlay.open {
  display: block;
  opacity: 1;
}

/* Sidebar */
.sidebar {
  width: 200px;
  background: #FFFFFF;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  cursor: pointer;
}

.company-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1A1A1A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.company-name {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  color: #9CA3AF;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #4B5563;
  text-align: left;
  transition: all 0.15s ease;
}

.menu-item:hover {
  background: #F3F4F6;
}

.menu-item.active {
  background: #F3F4F6;
  color: #1A1A1A;
  font-weight: 500;
}

.menu-item svg {
  color: #6B7280;
  flex-shrink: 0;
}

.menu-item.active svg {
  color: #1A1A1A;
}

.submenu-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}

.submenu-chevron.rotated {
  transform: rotate(180deg);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 16px 8px;
}

/* Top Header */
.top-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #1A1A1A;
  flex-shrink: 0;
}

.search-container {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #9CA3AF;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: #3B82F6;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-shortcut {
  position: absolute;
  right: 12px;
  font-size: 12px;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.move-money-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.move-money-btn:hover {
  background: #F9FAFB;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: #F3F4F6;
}

.download-btn {
  color: #4F46E5;
}

.download-btn:hover {
  background: #EEF2FF;
}

.notification-btn {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

/* Dashboard Content */
.dashboard-content {
  max-width: 1200px;
  width: 100%;
}

.welcome-title {
  font-size: 32px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.action-btn:hover {
  background: #F9FAFB;
}

.action-btn.primary {
  background: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

.action-btn.primary:hover {
  background: #4338CA;
}

.customize-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: none;
  border: none;
  font-size: 14px;
  color: #6B7280;
  cursor: pointer;
  margin-left: auto;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Balance Card */
.balance-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-title {
  font-size: 14px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  width: 16px;
  height: 16px;
  background: #3B82F6;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-actions {
  display: flex;
  gap: 4px;
}

.chart-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  color: #9CA3AF;
}

.chart-toggle.active {
  background: #F3F4F6;
  color: #1A1A1A;
}

.balance-amount {
  font-size: 36px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.balance-period {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.balance-change {
  display: flex;
  align-items: center;
  gap: 4px;
}

.balance-change.positive {
  color: #10B981;
}

.balance-change.negative {
  color: #EF4444;
}

.balance-chart {
  height: 120px;
}

.chart-svg {
  width: 100%;
  height: 100px;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 8px;
}

/* Accounts Card */
.accounts-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
}

.icon-btn-sm:hover {
  background: #F3F4F6;
}

.accounts-list {
  margin: 16px 0;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.account-item:last-child {
  border-bottom: none;
}

.account-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  flex-shrink: 0;
}

.account-name {
  flex: 1;
  font-size: 14px;
  color: #1A1A1A;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-balance {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  flex-shrink: 0;
}

.accounts-promo {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.accounts-promo h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.accounts-promo p {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 12px;
}

.create-account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  font-size: 14px;
  color: #4F46E5;
  cursor: pointer;
}

/* Money Movement Section */
.money-movement-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: #1A1A1A;
}

.month-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6B7280;
}

.month-selector svg {
  cursor: pointer;
  color: #9CA3AF;
}

.rotate-180 {
  transform: rotate(180deg);
}

.money-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.money-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.money-card h3 {
  font-size: 14px;
  color: #6B7280;
  font-weight: 400;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon {
  font-size: 12px;
  color: #9CA3AF;
}

.money-amount {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.money-amount.positive {
  color: #10B981;
}

.money-amount.negative {
  color: #1A1A1A;
}

.top-list h4 {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #1A1A1A;
  flex-shrink: 0;
}

.item-name {
  flex: 1;
  font-size: 14px;
  color: #1A1A1A;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-amount {
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
}

.item-amount.negative {
  color: #EF4444;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
}

.average-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}

.average-section h4 {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 400;
  margin-bottom: 4px;
}

.average-amount {
  font-size: 20px;
  font-weight: 500;
  color: #1A1A1A;
}

.average-amount.negative {
  color: #1A1A1A;
}

.mini-chart {
  height: 30px;
  background: linear-gradient(90deg, #E5E7EB 0%, #E5E7EB 50%, transparent 50%);
  background-size: 8px 2px;
  background-position: bottom;
  background-repeat: repeat-x;
  margin-top: 12px;
}

/* Transactions Section */
.transactions-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 14px;
  color: #6B7280;
  cursor: pointer;
}

.transaction-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: #6B7280;
  white-space: nowrap;
}

.tab.active {
  background: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}

.transactions-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.transactions-table th {
  text-align: left;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}

.transactions-table th svg {
  vertical-align: middle;
  margin-left: 4px;
}

.transactions-table td {
  padding: 16px 8px;
  font-size: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.transaction-recipient {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recipient-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #1A1A1A;
  flex-shrink: 0;
}

td.positive {
  color: #10B981;
}

td.negative {
  color: #1A1A1A;
}

.method-badge {
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
}

/* Transactions Page */
.transactions-page {
  max-width: 1400px;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 500;
  color: #1A1A1A;
}

.match-receipts-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #4B5563;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #F9FAFB;
}

.filter-spacer {
  flex: 1;
  min-width: 0;
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #4B5563;
  white-space: nowrap;
}

.transactions-stats {
  display: grid;
  grid-template-columns: 200px 1fr 250px;
  gap: 24px;
  margin-bottom: 24px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.stat-card h3 {
  font-size: 13px;
  color: #6B7280;
  font-weight: 400;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.stat-compare {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 16px;
}

.stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.breakdown-indicator {
  width: 3px;
  height: 16px;
  border-radius: 2px;
}

.breakdown-indicator.positive {
  background: #10B981;
}

.breakdown-indicator.negative {
  background: #EF4444;
}

.breakdown-value {
  margin-left: auto;
  font-weight: 500;
}

.breakdown-value.positive {
  color: #10B981;
}

.breakdown-value.negative {
  color: #EF4444;
}

.stat-chart {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.chart-header {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.transactions-chart {
  width: 100%;
  height: 100px;
}

.to-from-chart {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.to-from-chart .chart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.bar-chart {
  margin-top: 16px;
}

.bar-item {
  margin-bottom: 12px;
}

.bar-label {
  font-size: 11px;
  color: #6B7280;
  margin-bottom: 4px;
}

.bar {
  height: 24px;
  border-radius: 4px;
  min-width: 20px;
}

.bar.positive {
  background: #10B981;
}

.bar.negative {
  background: #FCA5A5;
}

.full-transactions-table {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  border-collapse: collapse;
  overflow: hidden;
  min-width: 600px;
}

.full-transactions-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  background: #FAFAFA;
  border-bottom: 1px solid #E5E7EB;
  white-space: nowrap;
}

.full-transactions-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #F3F4F6;
}

.full-transactions-table tr:last-child td {
  border-bottom: none;
}

.category-select {
  padding: 6px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  background: #FFFFFF;
  min-width: 100px;
  max-width: 140px;
}

.attachment-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  color: #9CA3AF;
}

/* Modal Overlay */
.modal-overlay,
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

/* Download App Modal */
.download-modal {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.download-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
}

.modal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mercury-logo {
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.download-modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.download-modal-content {
  padding: 24px;
  overflow-y: auto;
}

.download-section {
  padding: 20px 0;
}

.download-section.primary {
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 100%);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 8px;
}

.download-section.success {
  text-align: center;
}

.app-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon-large {
  width: 64px;
  height: 64px;
  background: #1a1a1a;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

.app-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1A1A1A;
}

.app-info p {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 8px 0;
}

.app-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-features span {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
  border-radius: 100px;
  font-weight: 500;
}

.primary-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 12px;
  background: #1a1a1a;
}

.primary-btn:hover:not(:disabled) {
  background: #333;
}

.download-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon.desktop {
  background: #EEF2FF;
  color: #4F46E5;
}

.download-icon.android {
  background: #ECFDF5;
  color: #10B981;
}

.download-icon.ios {
  background: #F0F9FF;
  color: #0EA5E9;
}

.check-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.download-section > p {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 16px;
  text-align: center;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.install-btn:hover:not(:disabled) {
  background: #4338CA;
  transform: translateY(-1px);
}

.install-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.install-instructions {
  text-align: left;
  background: #F9FAFB;
  border-radius: 12px;
  padding: 16px;
}

.install-instructions .step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.install-instructions .step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 24px;
  height: 24px;
  background: #1a1a1a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.install-instructions .step span:last-child {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
  padding-top: 2px;
}

.install-instructions .step strong {
  color: #1A1A1A;
}

.install-note {
  font-size: 13px !important;
  color: #10B981 !important;
  text-align: center;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-weight: 500;
}

.download-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9CA3AF;
  font-size: 12px;
}

.download-divider::before,
.download-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.download-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  text-align: center;
}

.download-modal-footer p {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0;
}

/* Admin Panel */
.admin-modal {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
}

.admin-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #6B7280;
}

.close-btn:hover {
  background: #F3F4F6;
}

.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E5E7EB;
  overflow-x: auto;
}

.admin-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.admin-tab:hover {
  color: #1A1A1A;
}

.admin-tab.active {
  color: #4F46E5;
  border-bottom-color: #4F46E5;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.settings-form {
  max-width: 400px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #4B5563;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus {
  border-color: #4F46E5;
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.save-btn:hover {
  background: #4338CA;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #10B981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 20px;
}

.add-btn:hover {
  background: #059669;
}

.new-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 20px;
}

.new-form input,
.new-form select {
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}

.new-form .save-btn {
  min-width: auto;
}

.transaction-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  min-width: auto;
  flex: none;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 8px;
  flex-wrap: wrap;
}

.admin-item input {
  padding: 8px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 14px;
  flex: 1;
  min-width: 80px;
}

.admin-item input[type="number"] {
  width: 80px;
  flex: none;
}

.item-info {
  flex: 1;
  font-size: 14px;
  color: #1A1A1A;
  min-width: 100px;
}

.item-balance {
  font-size: 14px;
  font-weight: 500;
  color: #1A1A1A;
  min-width: 80px;
  text-align: right;
}

.edit-btn,
.delete-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  flex-shrink: 0;
}

.edit-btn:hover {
  background: #EEF2FF;
  color: #4F46E5;
  border-color: #C7D2FE;
}

.delete-btn:hover {
  background: #FEF2F2;
  color: #EF4444;
  border-color: #FECACA;
}

.transaction-item {
  flex-wrap: wrap;
}

.transaction-date {
  width: 70px;
  font-size: 13px;
  color: #6B7280;
  flex-shrink: 0;
}

.transaction-name {
  flex: 1;
  font-size: 14px;
  color: #1A1A1A;
  min-width: 100px;
}

.transaction-amount {
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.transaction-amount.positive {
  color: #10B981;
}

.transaction-amount.negative {
  color: #EF4444;
}

.edit-transaction-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.edit-transaction-form input {
  flex: 1;
  min-width: 80px;
}

.transactions-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Utility Classes */
.hide-mobile {
  display: table-cell;
}

.hide-tablet {
  display: block;
}

.btn-text {
  display: inline;
}

/* Responsive Styles */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .money-cards {
    grid-template-columns: 1fr;
  }
  
  .transactions-stats {
    grid-template-columns: 1fr;
  }
  
  .hide-tablet {
    display: none !important;
  }
  
  .page-content {
    padding: 20px 24px;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 260px;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .sidebar-overlay.open {
    display: block;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .top-header {
    padding: 12px 16px;
  }
  
  .search-container {
    display: none;
  }
  
  .move-money-btn .btn-text {
    display: none;
  }
  
  .move-money-btn {
    padding: 10px 12px;
  }
  
  .page-content {
    padding: 16px;
  }
  
  .welcome-title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .action-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }
  
  .action-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .balance-amount {
    font-size: 28px;
  }
  
  .balance-card,
  .accounts-card,
  .money-card {
    padding: 16px;
  }
  
  .money-amount {
    font-size: 24px;
  }
  
  .section-header h2 {
    font-size: 18px;
  }
  
  .page-header h1 {
    font-size: 22px;
  }
  
  .match-receipts-btn .btn-text {
    display: none;
  }
  
  .filter-btn .btn-text {
    display: none;
  }
  
  .export-btn .btn-text {
    display: none;
  }
  
  .transactions-table {
    min-width: 350px;
  }
  
  .full-transactions-table {
    min-width: 350px;
  }
  
  .admin-modal {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
  }
  
  .download-modal {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
  
  .admin-content {
    padding: 16px;
  }
  
  .new-form {
    flex-direction: column;
  }
  
  .new-form input,
  .new-form select {
    min-width: 100%;
  }
  
  .transaction-form {
    grid-template-columns: 1fr;
  }
  
  .admin-item {
    padding: 12px;
  }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
  .top-header {
    gap: 8px;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  
  .welcome-title {
    font-size: 20px;
  }
  
  .action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .action-btn span {
    display: none;
  }
  
  .action-btn svg {
    margin: 0;
  }
  
  .balance-amount {
    font-size: 24px;
  }
  
  .money-amount {
    font-size: 20px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .chart-labels span {
    font-size: 9px;
  }
  
  .transaction-recipient span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .page-content {
    padding: 12px 16px;
  }
  
  .welcome-title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .dashboard-grid {
    gap: 16px;
    margin-bottom: 16px;
  }
  
  .money-movement-section {
    margin-bottom: 16px;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .top-header,
  .action-buttons,
  .customize-btn,
  .view-all-btn,
  .view-all-link {
    display: none !important;
  }
  
  .main-content {
    margin: 0;
  }
  
  .page-content {
    padding: 0;
  }
}
