:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #000000;
  --primary: #007aff;
}

body.dark {
  --bg: #000000;
  --card: #1c1c1e;
  --text: #ffffff;
  --primary: #0a84ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui;
  background: var(--bg);
  color: var(--text);
}

.app {
  max-width: 430px;
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 16px;
  text-align: center;
  font-weight: 700;
}


.screen {
  flex: 1;
  padding: 20px;
  display: none;
}

.screen.active {
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 12px;
  border: none;
  background: var(--card);
  color: var(--text);
}

button {
  margin-top: 12px;
  padding: 14px;
  width: 100%;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
}

.card {
  background: var(--card);
  padding: 16px;
  border-radius: 14px;
}

nav {
  display: flex;
  background: var(--card);
  border-top: 1px solid rgba(0,0,0,.1);
}

nav button {
  flex: 1;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
}

nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  margin-bottom: 2px;
}


nav span {
  display: block;
  font-size: 11px;
}

/* Toggle iOS style */
.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle input {
  display: none;
}

.slider {
  width: 44px;
  height: 26px;
  background: #ccc;
  border-radius: 26px;
  position: relative;
}

.slider::before {
  content: '';
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: .3s;
}

input:checked + .slider {
  background: var(--primary);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

.info-text {
  margin-top: 20px;
  font-size: 13px;
  opacity: .6;
}
nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-bottom: 2px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  display: none;
}

.switch .slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: .3s;
}

.switch .slider::before {
  content: "";
  width: 22px;
  height: 22px;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: .3s;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}
body.dark header {
  background: #000;
}

body.dark nav {
  background: #1c1c1e;
  border-top: 1px solid #333;
}

body.dark {
  background: #000;
}
button.secondary {
  background: transparent;
  color: var(--primary);
}
button.danger {
  background: #ff3b30;
  color: white;
}
.title {
  text-align: center;
  font-size: 50px;
  margin-top: 20px;
  background: linear-gradient(
    180deg,
    #000 0%,
    #d1d1d1 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subTitle {
  text-align: center;
  font-size: 22px;
  margin-top: 20px;
}

.auth-card {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
}

.auth-card input {
  margin-top: 12px;
}

.link {
  margin-top: 14px;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
}

/* TOAST NOTIFICATION */
#toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: 90%;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

#toast-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

#toast-text {
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.input-ios {
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border-radius: 14px;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

body.dark .input-ios {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

#splash {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 600;
  z-index: 99999;
}
#splash {
  transition: opacity .4s ease;
}

#splash.hide {
  opacity: 0;
  pointer-events: none;
}
.splash-title {
  letter-spacing: 1px;
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d1d1d1 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#clientes-list .card {
  background: var(--card);
  padding: 14px;
  border-radius: 16px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}


