/* BON Wallet - Apple-inspired CSS */

/* Base Styles & Variables */
:root {
  --primary-color: #000;
  --secondary-color: #1e1e1e;
  --accent-color: #0071e3; /* Apple blue */
  --success-color: #34c759; /* Apple green */
  --danger-color: #ff3b30; /* Apple red */
  --warning-color: #ff9500; /* Apple orange */
  --background-color: #f5f5f7; /* Light gray background */
  --card-bg: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 32px;
  text-align: center;
  margin: 1em 0;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* Layout & Sections */
.section {
  margin-bottom: 24px;
  padding: 24px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.hidden {
  display: none;
}

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

/* Auth Section */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Forms & Inputs */
input {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

input::placeholder {
  color: var(--text-secondary);
}

button {
  padding: 16px 24px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  background-color: #005bbf;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

.logout-btn {
  background-color: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 14px;
}

.logout-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: none;
}

/* Wallet Info */
.wallet-info {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.wallet-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-label {
  color: var(--text-secondary);
  font-size: 14px;
  min-width: 100px;
}

.wallet-value {
  font-weight: 500;
  font-family: var(--font-mono);
  background-color: rgba(0, 0, 0, 0.03);
  padding: 6px 10px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency {
  font-weight: 600;
  margin-left: 4px;
  color: var(--accent-color);
}

/* Version Card */
.version-card {
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.version-info {
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
}

/* Description Card */
.description-card {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* Transfer Form */
.transfer-form {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

/* Transaction History */
.transaction-history {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

#transactions-list {
  margin-top: 20px;
}

/* Transaction Card */
.transaction-card {
  padding: 16px;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.02);
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.transaction-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.transaction-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.transaction-parties {
  font-weight: 500;
}

.transaction-timestamp {
  font-size: 12px;
  color: var(--text-secondary);
}

.transaction-amount {
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.amount-sent {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--danger-color);
}

.amount-received {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--success-color);
}

/* Developer Card */
.developer-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-tag {
  background-color: var(--success-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.card-body {
  padding: 24px;
}

.main-description {
  margin-bottom: 20px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius);
}

.benefit-item i {
  font-size: 24px;
  color: var(--accent-color);
}

.developer-btn {
  display: block;
  text-align: center;
  background-color: var(--primary-color);
  color: white;
  padding: 16px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.developer-btn:hover {
  background-color: #333;
}

/* Admin Panel */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stats-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.stats-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 113, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-color);
}

.stats-content h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stats-content p {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.admin-transactions, .admin-all-users {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.transaction-filters {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

select {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.02);
}

.users-searcg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 16px;
}

/* Social Links */
.social-links {
  text-align: center;
}

.social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.social-button {
  padding: 16px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.social-button i {
  font-size: 18px;
}

/* Footer */
.footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 20px;
}

.standard-link {
  color: var(--accent-color);
  text-decoration: none;
}

.standard-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
  .wallet-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .social-buttons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  #app {
    padding: 16px;
  }

  .section {
    padding: 20px;
  }

  .benefits-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .stats-card {
    padding: 16px;
  }

  .stats-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .stats-content p {
    font-size: 16px;
  }
}

/* Dark Mode (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1d1d1f;
    --card-bg: #2d2d2f;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  input, select {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  .benefit-item, .transaction-card {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .wallet-value {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .version-card {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .amount-sent {
    background-color: rgba(255, 59, 48, 0.2);
  }

  .amount-received {
    background-color: rgba(52, 199, 89, 0.2);
  }

  .stats-icon {
    background-color: rgba(0, 113, 227, 0.2);
  }
}
