/* Global shared styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

footer,
footer.site-footer {
  width: 100%;
  text-align: center;
  padding: 14px 12px;
  font-size: 0.88rem;
  color: #d1d1d1;
  background: rgba(0, 0, 0, 0.02);
}

footer a,
footer.site-footer a {
  color: #d1d1f0;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: #ffffff;
  text-decoration: underline;
}

footer .footer-separator {
  margin: 0 0.4rem;
  color: #999;
}

/* ==========================================
   UX Polish Standard Shared Styles
   ========================================== */

/* Form Validation States */
input.ux-invalid, select.ux-invalid, textarea.ux-invalid {
  border-color: #dc3545 !important;
  background-color: #fff8f8 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

input.ux-valid, select.ux-valid, textarea.ux-valid {
  border-color: #28a745 !important;
  background-color: #fcfdfc !important;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15) !important;
}

.ux-error-message {
  color: #dc3545;
  font-size: 0.78rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s ease;
}

.ux-char-count {
  font-size: 0.72rem;
  color: #888;
  text-align: right;
  margin-top: 2px;
  display: block;
}

/* Password Requirements List */
.ux-password-requirements {
  list-style: none;
  padding: 8px 12px;
  margin: 8px 0;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 0.78rem;
  color: #666;
}

.ux-password-requirements li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.ux-password-requirements li:last-child {
  margin-bottom: 0;
}

.ux-password-requirements li .material-icons {
  font-size: 14px;
}

.ux-password-requirements li.valid {
  color: #28a745;
}

.ux-password-requirements li.invalid {
  color: #888;
}

/* Skeleton Screens */
.ux-skeleton {
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 50%, #f2f2f2 75%);
  background-size: 200% 100%;
  animation: ux-skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes ux-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ux-skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.ux-skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  width: 60%;
}

.ux-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.ux-skeleton-row {
  height: 40px;
  margin-bottom: 8px;
  width: 100%;
}

.ux-skeleton-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Onboarding Empty States */
.ux-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

.ux-empty-icon {
  font-size: 48px !important;
  color: #ccc;
  margin-bottom: 16px;
  background: #f9f9f9;
  padding: 16px;
  border-radius: 50%;
}

.ux-empty-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.ux-empty-text {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

.ux-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6a11cb;
  color: #fff !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(106, 17, 203, 0.2);
  transition: transform 0.2s, background 0.2s;
}

.ux-empty-action:hover {
  background: #5b0ecb;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

