/*
 * Student App Screens Styles
 */

/* View switcher */
.screen-view {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  animation: fadeIn 200ms ease;
}

.screen-view.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1. Login Screen */
.login-screen {
  min-height: 80vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
  padding: var(--space-6);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.login-logo {
  width: 64px;
  height: 64px;
}

.login-title {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.login-tagline {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  max-width: 300px;
}

.google-btn-wrapper {
  margin-top: var(--space-2);
  min-height: 44px;
  display: flex;
  justify-content: center;
}

/* 2. Registration Screen */
.reg-card {
  margin-top: var(--space-4);
}

.reg-profile-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--surface-subtle);
  border-radius: var(--radius-md);
}

/* 3. Blocked Screen */
.blocked-card {
  margin-top: 20vh;
  text-align: center;
  align-items: center;
  padding: var(--space-6);
}

/* 4. Home Screen */
.greeting-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.greeting-text {
  flex: 1;
}

.greeting-hello {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.greeting-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
}

/* Window Status Card */
.window-status-card {
  border-left: 4px solid var(--accent);
}

.window-status-card.open {
  border-left-color: var(--present);
  background: linear-gradient(to right, var(--present-tint), var(--surface));
}

.window-status-card.closed {
  border-left-color: var(--text-muted);
}

.window-status-card.off {
  border-left-color: var(--off-day);
}

.window-status-card.before {
  border-left-color: var(--warning);
}

.status-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-timer {
  font-size: var(--font-size-xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Distance Card */
.distance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
}

.distance-value {
  white-space: nowrap;
  font-size: var(--font-size-xxl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.distance-subtext {
  text-align: right;
  white-space: pre-line;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* Check-in feedback panel */
.checkin-feedback {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.checkin-feedback.success {
  background-color: var(--present-tint);
  color: var(--present-text);
  border: 1px solid var(--present);
}

.checkin-feedback.error {
  background-color: var(--absent-tint);
  color: var(--absent-text);
  border: 1px solid var(--absent);
}

/* GPS Troubleshooting Card */
.gps-help-card {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.gps-help-card h4 {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--text);
}

.gps-help-card ol {
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* History Screen */
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.history-date {
  font-weight: 600;
  color: var(--text);
}

.history-meta {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.offline-bar {
  background-color: var(--warning-tint);
  color: var(--warning-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
}

/* Profile Screen */
.profile-card {
  align-items: center;
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  margin-top: var(--space-4);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-field-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.profile-field-value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.theme-selector-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

/* Login screen must stay hidden unless it is the active view */
.login-screen.active {
  display: flex;
}
