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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Page Styles */
.login-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f0f0f0;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 60px 50px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.login-logo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 15px;
  color: #666666;
  margin-bottom: 36px;
}

.login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-btn {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  gap: 12px;
}

.login-btn:hover {
  background-color: #f8f8f8;
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dashboard Page Styles */
.dashboard-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #f0f0f0;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.profile-section {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.profile-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  font-size: 32px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.profile-name {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
  color: #666666;
}

.info-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.info-label {
  font-size: 14px;
  color: #666666;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.error-text {
  font-size: 14px;
  color: #e53e3e;
  padding: 12px 16px;
  background: #fff5f5;
  border-radius: 8px;
}

.actions-section {
  text-align: center;
}

.logout-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.logout-btn:hover {
  background: #333333;
}

/* Success Page Styles */
.success-icon {
  margin-bottom: 24px;
}

.redirect-info {
  margin-top: 24px;
}

.redirect-text {
  font-size: 14px;
  color: #666666;
  margin-bottom: 16px;
}

.redirect-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.redirect-btn:hover {
  opacity: 0.9;
}

/* Admin Monitor Styles */
.admin-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f0f0f0;
}

.admin-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.admin-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.admin-subtitle {
  font-size: 14px;
  color: #666666;
  margin-bottom: 24px;
}

.empty-text {
  font-size: 14px;
  color: #999;
  text-align: center;
  padding: 40px 0;
}

.table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f9f9f9;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.token-cell {
  font-family: monospace;
  font-size: 12px;
  color: #888;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin Login Form */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-input {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  border-color: #4f46e5;
}

.admin-submit-btn {
  padding: 14px 20px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 4px;
}

.admin-submit-btn:hover {
  background: #333333;
}

/* Admin User Detail Styles */
.user-detail-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.user-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.view-btn {
  display: inline-block;
  padding: 6px 14px;
  background: #4f46e5;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.view-btn:hover {
  opacity: 0.85;
}

.labels-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.label-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 12px;
  color: #444;
}
