/* ==========================================================================
   SHIFANI HYGIENIC PRODUCT COMPANY — EMPLOYEE PORTAL STYLESHEET
   Author: Shifani Web Dev Team
   Version: 3.0.0
   ========================================================================== */

:root {
  --primary-hue: 215;
  --primary: hsl(var(--primary-hue), 85%, 45%);
  --primary-hover: hsl(var(--primary-hue), 85%, 38%);
  --primary-light: hsl(var(--primary-hue), 90%, 96%);
  --primary-glow: hsla(var(--primary-hue), 85%, 45%, 0.25);

  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;
  --accent-indigo: #4f46e5;
  --accent-cyan: #0891b2;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-main: #0b1329;
  --bg-card: #15203b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #273554;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--primary-hover);
}

/* -------------------------------------------------------------------------- */
/* TOP NAVIGATION HEADER                                                     */
/* -------------------------------------------------------------------------- */
.emp-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  transition: background var(--transition-normal);
}

[data-theme="dark"] .emp-header {
  background: rgba(21, 32, 59, 0.85);
}

.emp-header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.emp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.emp-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.emp-brand-text {
  display: flex;
  flex-direction: column;
}

.emp-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e3a8a;
  line-height: 1.2;
}

[data-theme="dark"] .emp-brand-name {
  color: #60a5fa;
}

.emp-brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}

.emp-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.header-link-btn {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.header-link-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* -------------------------------------------------------------------------- */
/* LOGIN CONTAINER & HERO SPLIT                                               */
/* -------------------------------------------------------------------------- */
.login-page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 40%);
}

.login-container {
  width: 100%;
  max-width: 1040px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 868px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Left Hero Branding Box */
.login-hero-box {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 60%, #1e3a8a 100%);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-hero-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content-top {
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #60a5fa;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-title span {
  color: #38bdf8;
}

.hero-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Hero Feature List */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-feature-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}
.hero-feature-text p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.hero-footer-info {
  font-size: 0.78rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Right Login Form Box */
.login-form-box {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 576px) {
  .login-form-box {
    padding: 2rem 1.5rem;
  }
}

.form-header {
  margin-bottom: 1.8rem;
}

.form-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Quick Demo Login Bar */
.demo-login-bar {
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .demo-login-bar {
  background: rgba(37, 99, 235, 0.15);
}

.demo-bar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-demo-fill {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .btn-demo-fill {
  background: var(--bg-card);
}

.btn-demo-fill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Input Fields */
.emp-form-group {
  margin-bottom: 1.25rem;
}

.emp-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.emp-input, .emp-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-main);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.emp-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2764748b%27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
}

.emp-input:focus, .emp-select:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.toggle-pwd-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.toggle-pwd-btn:hover {
  color: var(--text-main);
}

/* Captcha Box */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.captcha-badge {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #38bdf8;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  user-select: none;
  border: 1px dashed #38bdf8;
  text-decoration: line-through;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

.btn-refresh-captcha {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-refresh-captcha:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Form Footer Row */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.link-forgot {
  font-weight: 600;
  color: var(--primary);
}

/* Submit Button */
.btn-login-submit {
  width: 100%;
  padding: 0.88rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-login-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.btn-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-form-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Alerts Toast Container */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease forwards;
  max-width: 380px;
}

.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-error {
  border-left: 4px solid var(--accent-rose);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* -------------------------------------------------------------------------- */
/* GENERAL MODALS & POPUPS                                                   */
/* -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  color: var(--text-main);
  width: 100%;
  max-width: 540px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-color);
  padding: 1.75rem 1.5rem;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.modal-header-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  padding-right: 2.2rem;
}

.modal-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.25));
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.required-star {
  color: #ef4444;
  font-weight: bold;
}

.uppercase-input {
  text-transform: uppercase;
}

.btn-modal-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-modal-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

/* -------------------------------------------------------------------------- */
/* DASHBOARD SPECIFIC STYLES                                                 */
/* -------------------------------------------------------------------------- */
.dash-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dash-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  sticky: top 0;
  z-index: 50;
}

.dash-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.dash-user-info {
  display: flex;
  flex-direction: column;
}

.dash-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.dash-user-role {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-logout {
  background: var(--accent-rose-light);
  color: var(--accent-rose);
  border: 1px solid rgba(225, 29, 72, 0.2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: var(--accent-rose);
  color: #ffffff;
}

.dash-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Profile Widget */
.emp-profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.profile-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-id-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-family: monospace;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.profile-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
}

.detail-label {
  color: var(--text-muted);
}
.detail-val {
  font-weight: 600;

}

/* Main Dashboard Cards */
.dash-banner {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.dash-banner h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.dash-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Attendance Punch Card */
.punch-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.punch-timer-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clock-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.live-time-display {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--text-main);
}

.btn-punch {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-punch-in {
  background: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-punch-in:hover {
  background: #047857;
}

.btn-punch-out {
  background: var(--accent-rose);
  color: #ffffff;
}

/* Stat Cards Row */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.stat-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Digital ID Card Modal / Component */
.id-card-wrap {
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid #2563eb;
  color: #0f172a;
  margin: 0 auto;
}

.id-card-top {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  padding: 1.25rem 1rem;
  text-align: center;
}

.id-company-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.id-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.id-card-body {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.id-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #2563eb;
  margin: -45px auto 0.75rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e3a8a;
  box-shadow: var(--shadow-md);
}

.id-staff-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.id-staff-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
}

.id-meta-grid {
  font-size: 0.78rem;
  text-align: left;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.id-qr-box {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.id-qr-box svg {
  width: 60px;
  height: 60px;
}

.stamp-box {
  font-size: 0.65rem;
  font-weight: 700;
  color: #059669;
  border: 1.5px solid #059669;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   EMPLOYEE PORTAL MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
  .login-page-wrapper {
    padding: 1rem 0.75rem;
    align-items: flex-start;
  }

  .login-container {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse; /* Places Login Form at TOP on mobile so user doesn't have to scroll! */
    border-radius: 16px;
    max-width: 100%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  }

  .login-form-box {
    padding: 1.75rem 1.25rem;
  }

  .form-header h2 {
    font-size: 1.35rem;
  }

  .form-header p {
    font-size: 0.82rem;
  }

  .login-hero-box {
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-pill-badge {
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .hero-desc {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.45;
  }

  .hero-features-list {
    display: none; /* Hide long feature lists on mobile screens for a compact view */
  }

  .hero-footer-info {
    font-size: 0.72rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 576px) {
  .emp-header {
    padding: 0.5rem 0.85rem;
  }

  .emp-logo-img {
    height: 32px;
  }

  .emp-brand-name {
    font-size: 0.95rem;
  }

  .emp-brand-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  .header-link-btn {
    font-size: 0.76rem;
    padding: 0.3rem 0.5rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .emp-input, .emp-select {
    font-size: 16px; /* Prevents mobile browser auto-zoom */
    padding-left: 2.5rem;
  }

  .form-row-between {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  .btn-login-submit {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .modal-card {
    padding: 1.25rem;
    max-width: 94%;
  }
}

/* ==========================================================================
   EMPLOYEE DASHBOARD ULTRA RESPONSIVE MOBILE APP STYLES
   ========================================================================== */

/* Profile Action Buttons Grid */
.profile-actions-grid {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-actions-subrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-action-sub {
  font-size: 0.78rem !important;
  padding: 0.55rem 0.4rem !important;
  background: var(--bg-main) !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  text-align: center;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: none !important;
  transition: all var(--transition-fast);
}

.btn-action-sub:hover {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ==========================================================================
   EMPLOYEE PORTAL MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 900px) {
  .dash-main {
    padding: 0.75rem 0.5rem;
  }

  .dash-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dash-user-pill .dash-user-info {
    display: none;
  }

  .dash-user-pill {
    padding: 4px;
    background: transparent;
    border: none;
  }

  .emp-header-actions {
    gap: 0.5rem;
  }

  .btn-logout span {
    display: none;
  }

  .btn-logout {
    padding: 0.55rem;
    border-radius: 50%;
  }

  /* Compact Mobile Profile Card */
  .emp-profile-card {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .profile-big-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin: 0;
    flex-shrink: 0;
  }

  .profile-name {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .profile-id-tag {
    font-size: 0.7rem;
    word-break: break-all;
  }

  .profile-detail-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
    background: var(--bg-main);
    padding: 0.65rem 0.75rem !important;
    border-radius: var(--radius-sm);
  }

  .profile-detail-item {
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  /* Compact Dashboard Banner */
  .dash-banner {
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-md);
  }

  .dash-banner h2 {
    font-size: 1.05rem;
    margin-bottom: 2px;
  }

  .dash-banner p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .dash-banner span {
    font-size: 1.6rem !important;
  }

  /* Mobile 3-Card Responsive Grid */
  .stat-cards-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    margin-bottom: 0.85rem !important;
  }

  .dash-stat-card {
    padding: 0.65rem 0.3rem !important;
    text-align: center !important;
    border-radius: 12px !important;
  }

  .stat-card-head {
    font-size: 0.62rem !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: center !important;
  }

  .stat-val {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    margin: 2px 0 !important;
  }

  .stat-cards-row small, 
  .stat-cards-row div[style*="font-size:0.75rem"] {
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
  }

  /* Table Mobile Touch Scroll */
  .emp-table th, .emp-table td {
    padding: 0.55rem 0.45rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    padding: 1.5rem 1.15rem 1.75rem 1.15rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-header-box {
    margin-bottom: 1.15rem;
    padding-right: 2.2rem;
  }

  .modal-title-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-subtitle {
    font-size: 0.78rem;
  }

  .modal-form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .emp-form-group {
    margin-bottom: 0.95rem !important;
  }

  .emp-form-group label {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
  }

  .emp-input, .emp-select {
    height: 48px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .btn-modal-submit {
    height: 50px;
    font-size: 0.95rem;
    border-radius: 12px;
    margin-top: 0.75rem;
  }
}

/* ==========================================================================
   EMPLOYEE PORTAL & DASHBOARD - DESKTOP OPTIMIZATIONS (min-width: 992px)
   ========================================================================== */

@media (min-width: 992px) {
  /* Login Container Desktop Elevate */
  .login-container {
    max-width: 1080px;
    min-height: 580px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
    border: 1px solid var(--border-color);
  }

  .login-hero-box {
    padding: 3.5rem 3rem;
  }

  .login-form-box {
    padding: 3.5rem 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  /* Sticky Sidebar Profile on Desktop Scroll */
  aside {
    position: sticky;
    top: 90px;
    align-self: start;
  }

  /* Main Dashboard Grid Desktop Balance */
  .dash-grid {
    grid-template-columns: 300px 1fr;
    gap: 1.75rem;
  }

  /* Desktop 3-KPI Cards Side by Side */
  .stat-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* User Pill Header Styling */
  .dash-user-pill {
    padding: 6px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
  }

  /* Table Hover Row Glow on Desktop */
  .emp-table tr:hover td {
    background: rgba(37, 99, 235, 0.03);
  }

  /* Modal Cards Desktop Centering */
  .modal-card {
    max-width: 540px;
  }
}

/* -------------------------------------------------------------------------- */
/* EMPLOYEE REGISTRATION RECORD CARD                                          */
/* -------------------------------------------------------------------------- */
.reg-record-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.reg-record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.reg-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.reg-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.25));
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.reg-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.reg-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.reg-status-pill {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reg-status-pill.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reg-grid-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .reg-grid-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.reg-info-block {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.reg-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.reg-block-icon {
  font-size: 1.1rem;
}

.reg-block-title h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.reg-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.reg-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.reg-lbl {
  color: var(--text-muted);
  font-size: 0.8rem;
  min-width: 120px;
  flex-shrink: 0;
}

.reg-val {
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

.reg-val-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.reg-contact-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.reg-contact-btns {
  display: flex;
  gap: 6px;
}

.reg-tiny-btn {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.reg-tiny-btn.call {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.reg-tiny-btn.call:hover {
  background: var(--primary);
  color: #fff;
}

.reg-tiny-btn.wa {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reg-tiny-btn.wa:hover {
  background: #10b981;
  color: #fff;
}

.reg-photo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-photo-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.reg-photo-empty {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.reg-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(29, 78, 216, 0.2));
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.reg-resume-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.reg-message-box {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(100, 116, 139, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  max-width: 280px;
  text-align: right;
  word-break: break-word;
}

