/*
  BANK APP – 60% DARK MODE
  Layout preserved | Bank-style UI
*/

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

/* ===== THEME ===== */
:root {
  --bg-main: #0f172a;
  --bg-card: #111827;
  --bg-soft: #1e293b;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;

  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-blue: #38bdf8;
  --accent-gold: #facc15;

  --border-soft: rgba(255, 255, 255, 0.06);
}

/* ===== BODY ===== */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-main);
  background: linear-gradient(145deg, #020617, #0f172a);

  padding: 2rem;
}

/* ===== NAV ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.welcome {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.logo {
  height: 5.25rem;
  filter: brightness(4.7);
}

/* ===== LOGIN ===== */
.login {
  display: flex;
}

.login__input {
  border: 1px solid var(--border-soft);
  padding: 0.7rem 2rem;
  font-size: 1.6rem;
  width: 12rem;
  border-radius: 10rem;
  margin-right: 1rem;
  color: var(--text-main);
  background-color: var(--bg-soft);
}

.login__input::placeholder {
  color: var(--text-muted);
}

.login__input:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.login__btn {
  border: none;
  background: none;
  font-size: 2.2rem;
  color: var(--accent-blue);
  cursor: pointer;
}

/* ===== APP GRID ===== */
.app {
  position: relative;
  max-width: 100rem;
  margin: 4rem auto;
  display: grid;
  grid-template-columns: 4fr 3fr;
  grid-template-rows: auto repeat(3, 15rem) auto;
  gap: 2rem;
  opacity: 0;
  transition: all 1s;
}

/* ===== BALANCE ===== */
.balance {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.balance__label {
  font-size: 2.2rem;
}

.balance__date {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.balance__value {
  font-size: 4.5rem;
  color: var(--accent-green);
}

/* ===== MOVEMENTS ===== */
.movements {
  grid-row: 2 / span 3;
  background-color: var(--bg-card);
  border-radius: 1.2rem;
  overflow-y: auto;
  border: 1px solid var(--border-soft);
}

.movements__row {
  padding: 2.25rem 4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}

.movements__type {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #020617;
  padding: 0.2rem 1rem;
  border-radius: 10rem;
  margin-right: 2rem;
}

.movements__type--deposit {
  background: linear-gradient(to right, #22c55e, #4ade80);
}

.movements__type--withdrawal {
  background: linear-gradient(to right, #ef4444, #f87171);
}

.movements__date {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.movements__value {
  margin-left: auto;
  font-size: 1.8rem;
}

/* ===== SUMMARY ===== */
.summary {
  grid-row: 5 / 6;
  display: flex;
  align-items: baseline;
}

.summary__label {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-right: 0.8rem;
}

.summary__value {
  font-size: 2.2rem;
  margin-right: 2.5rem;
}

.summary__value--in {
  color: var(--accent-green);
}

.summary__value--out {
  color: var(--accent-red);
}

.summary__value--interest {
  color: var(--accent-gold);
}

.btn--sort {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-blue);
  cursor: pointer;
}

/* ===== OPERATIONS (ORIGINAL COLORS) ===== */
.operation {
  border-radius: 1rem;
  padding: 3rem 4rem;
  color: #020617;
}

.operation--transfer {
  background-image: linear-gradient(to top left, #ffb003, #ffcb03);
}

.operation--loan {
  background-image: linear-gradient(to top left, #39b385, #9be15d);
}

.operation--close {
  background-image: linear-gradient(to top left, #e52a5a, #ff585f);
}

.operation h2 {
  color: #020617;
}

/* ===== FORMS ===== */
.form {
  display: grid;
  grid-template-columns: 2.5fr 2.5fr 1fr;
  gap: 0.4rem 1rem;
}

.form.form--loan {
  grid-template-columns: 2.5fr 1fr 2.5fr;
}

.form__label {
  font-size: 1.3rem;
  text-align: center;
  color: #020617;
}

.form__input {
  background-color: rgba(255, 255, 255, 0.6);
  border: none;
  font-size: 1.5rem;
  text-align: center;
  padding: 0.4rem 1rem;
  border-radius: 0.7rem;
}

.form__input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.85);
}

.form__btn {
  border: none;
  border-radius: 0.7rem;
  font-size: 1.8rem;
  background-color: #fff;
  cursor: pointer;
}

/* ===== LOGOUT TIMER ===== */
.logout-timer {
  margin-top: 1.9rem;
  text-align: right;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.timer {
  font-weight: 600;
  color: var(--accent-gold);
}

.user-pin {
  position: fixed;
  top: 14vh;
  left: 10px;
  background: #22eb9e;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.35);
  width: 225px;
  transition: all 1s ease;
}

.user-pin thead th {
  padding: 5px 20px;
  font-size: 16px;
  color: #000000;
  text-align: left;
}

.user-pin tbody td {
  padding: 2px 20px;
  text-align: left;
  font-size: 14px;
  color: #fff;
  filter: brightness(3);
  letter-spacing: 2px;
  font-weight: 550;
}

.table-hider {
  display: none;
}

.user-pin .arrow-down {
  background: transparent;
  border: none;
  font-size: 18px;
  margin: 0px 10px 0px 30px;
  position: absolute;
  top: 10px;
  right: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.mode .mode-btn {
  font-size: 15px;
  padding: 5px 15px 5px 8px;
  background: rgba(255, 255, 255, 0.97);
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom-right-radius: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.3s;
  width: 140px;
}
.mode .mode-btn:hover {
  background: #e9e9e9;
  transform: translateY(-1px);
}

.mode .mode-btn i {
  color: #facc15; /* moon glow */
  font-size: 17px;
}
