* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  height: 100%;
  background: #0b0d10;
  color: #fff;
}

/* Login page: no vertical scrollbar - fixed full-screen layer + hide scrollbar if any */
html.login-page {
  overflow: hidden !important;
  height: 100%;
  width: 100%;
  scrollbar-width: none;           /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
body.login-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 100vh !important;
  width: 100% !important;
  max-height: 100vh !important;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* Hide scrollbar in WebView/Chrome/Edge (root and any descendant) */
html.login-page::-webkit-scrollbar,
body.login-page::-webkit-scrollbar,
html.login-page ::-webkit-scrollbar,
body.login-page ::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
/* Fixed wrapper: only content; doesn't contribute to document scroll height */
body.login-page .login-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw;
  max-height: 100vh;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-wrapper {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  background: #0b0d10;
  overflow: hidden;
}

.slider-container {
  flex: 1;
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .slider-container {
    display: block;
  }
}

.slider-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b0d10 0%, #1a1f2e 100%);
}

.slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 80%;
  max-height: 80%;
}

.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #0b0d10;
  overflow: hidden;
  min-height: 0;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #fff;
  letter-spacing: -0.5px;
}

.login-card label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #e5e7eb;
  text-transform: capitalize;
}

.login-card input,
.login-card textarea,
.login-card select {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #23272f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.login-card input::placeholder,
.login-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-card input:focus,
.login-card textarea:focus,
.login-card select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: #2d323c;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.login-card textarea {
  resize: vertical;
  min-height: 100px;
}

.primary-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.7;
}

.forgot-password-link {
  text-align: center;
  margin-bottom: 20px;
}

.forgot-password-link a {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.forgot-password-link a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: #6b7280;
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: #2d3748;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.google-btn {
  width: 100%;
  padding: 12px 16px;
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.google-btn:hover {
  background: #232a3e;
  border-color: #3d4558;
}

.google-btn img {
  width: 20px;
  height: 20px;
}

.signup {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-top: 20px;
}

.signup a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.signup a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.back-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.back-link a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.description {
  text-align: center;
  color: #cbd5f5;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.feedback-message {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.feedback-message.success {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.feedback-message.error {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.validation-message {
  font-size: 12px;
  margin-top: -16px;
  margin-bottom: 16px;
  min-height: 16px;
}

.validation-message.error {
  color: #f87171;
}

.validation-message.valid {
  color: #4ade80;
}

.password-requirements {
  font-size: 13px;
  color: #9ca3af;
  margin-top: -12px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.password-requirements li {
  margin-bottom: 6px;
  list-style-type: disc;
}

.password-requirements li.valid {
  color: #4ade80;
}

.password-requirements li.invalid {
  color: #9ca3af;
}

.muted {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 16px;
}

/* User management: logout requests dark table */
.logout-requests-table-wrap {
  background: #23272f;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.logout-requests-table {
  width: 100%;
  border-collapse: collapse;
}

.logout-requests-table thead tr {
  background: #2d323c;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.logout-requests-table th {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
}

.logout-requests-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.logout-requests-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.logout-requests-table td {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 12px 16px;
  vertical-align: middle;
}

.error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-wrapper {
    flex-direction: column;
  }
  
  .slider-container {
    display: none;
  }
  
  .container {
    flex: 1;
    min-height: 100vh;
  }
}

/* ========================================
   OLD STYLES (KEEP FOR COMPATIBILITY)
   ======================================== */

.app {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #111318;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile {
  text-align: center;
}
.profile img {
  border-radius: 50%;
}
.profile span {
  font-size: 12px;
  color: #aaa;
}

nav a, .bottom a {
  display: block;
  padding: 12px;
  margin: 6px 0;
  border-radius: 8px;
  cursor: pointer;
  color: #aaa;
}
nav a.active, nav a:hover {
  background: #1f2229;
  color: #00ffb3;
}

/* Content */
.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats {
  display: flex;
  gap: 20px;
}
.stats div {
  background: #14171d;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
}

/* Grid */
.grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #14171d;
  border-radius: 16px;
  padding: 20px;
}

.card.wide {
  grid-column: span 2;
}

.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid #00ffb3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

.goal, .activity {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #1d2027;
  border-radius: 10px;
  margin-top: 10px;
}

.trainer {
  display: flex;
  gap: 10px;
  align-items: center;
}
.trainer img {
  border-radius: 12px;
}
.dashboard-row {
  display: flex;
  gap: 24px;
}

/* Core Glass Card */
.glass-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    #0f1116;
  border-radius: 18px;
  padding: 22px;
  flex: 1;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 20px 40px rgba(0,0,0,0.7);
}

/* Subtle glow edge */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(0,255,180,0.04);
}

/* Calories Card Layout */
.calories {
  display: flex;
  gap: 20px;
}

.progress-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    conic-gradient(#00ffb3 0 87%, #2a2d34 87% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.progress-ring span {
  font-size: 28px;
  font-weight: 600;
}

.progress-ring small {
  color: #aaa;
}

.metric {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 14px;
  color: #cfcfcf;
}

.metric b {
  margin-left: auto;
  margin-right: 10px;
}

.metric small {
  color: #777;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot.green { background: #00ffb3; }
.dot.gray { background: #555; }

.details-btn {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(180deg,#1c1f26,#12141a);
  border: none;
  border-radius: 10px;
  color: #aaa;
  cursor: pointer;
}

/* Heart Rate */
.heart h3 {
  margin-bottom: 12px;
}

canvas {
  width: 100%;
  height: 120px;
}

.heart .stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.heart .stats small {
  color: #777;
}
