/* Glassmorphism Styling */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-input:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Keep app screens usable on narrow phones without browser zoom. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

input, select, textarea, button {
  max-width: 100%;
}

@media (max-width: 639px) {
  main {
    padding: 1rem !important;
  }

  #transactions-list-container > div {
    flex-wrap: wrap;
  }

  #transactions-list-container > div > .min-w-0 {
    min-width: 0;
  }

  #transactions-list-container > div > .text-right {
    margin-left: auto;
  }

  #transaction-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #transaction-modal > div {
    margin: auto 0;
  }
}
