:root {
  --green: #0ea84b;
  --green-dark: #0a7a3e;
  --green-light: #10b759;
  --yellow: #caa23c;
  --blue: #5c6bc0;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #777;
  --border: #e4e4e4;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

body {
  background: #111;
  font-family: "Segoe UI", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.phone {
  width: 100%;
  max-width: 360px;
  min-height: 640px;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 7px var(--green),
    0 0 48px rgba(0, 0, 0, 0.7);
}

.header {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.header__title {
  font-weight: 700;
  font-size: 17px;
  color: var(--green-dark);
  letter-spacing: -0.2px;
}

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

.header__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f0faf4;
  border: 2px solid var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.header__avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn-back {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}
.btn-back:hover {
  opacity: 0.65;
}

.content {
  flex: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 140px;
  border-radius: 20px;
  margin-bottom: 12px;
  color: #fff;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-md);
  border: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.card:active {
  transform: scale(0.97);
}

.card__label {
  position: absolute;
  top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card__icon {
  width: 50px;
  height: 50px;
  margin-top: 10px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.card--green {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  box-shadow: 0 6px 20px rgba(14, 168, 75, 0.3);
}
.card--yellow {
  background: linear-gradient(135deg, #d4aa45, #b8892a);
  box-shadow: 0 6px 20px rgba(202, 162, 60, 0.3);
}
.card--blue {
  background: linear-gradient(135deg, #7986cb, var(--blue));
  box-shadow: 0 6px 20px rgba(92, 107, 192, 0.3);
}

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

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 168, 75, 0.12);
}
textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.15s,
    opacity 0.15s;
  margin-top: 4px;
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: scale(0.98);
}
.btn-submit--green {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  box-shadow: 0 4px 14px rgba(14, 168, 75, 0.3);
}
.btn-submit--yellow {
  background: linear-gradient(135deg, #d4aa45, #b8892a);
  box-shadow: 0 4px 14px rgba(202, 162, 60, 0.3);
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.info-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.info-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.info-card__value--green {
  color: var(--green-dark);
}

.login-logo {
  text-align: center;
  padding: 28px 0 18px;
}
.login-logo img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(14, 168, 75, 0.2);
}
.login-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 26px;
}
.login-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}
.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin: 18px 0 10px;
}

.list-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.list-item__name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.list-item__detail {
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}
.badge--in {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge--out {
  background: #fff3e0;
  color: #e65100;
}

.empty {
  text-align: center;
  padding: 24px;
  color: #bbb;
  font-size: 14px;
}

@media (max-width: 400px) {
  .phone {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  body {
    background: var(--bg);
  }
}
