/* Softage Resume Studio - Light Theme Styling */

:root {
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-panel: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --theme-color: #2563eb;
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
}

.hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header Navbar */
.app-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-primary {
  width: 100%;
  padding: 0 2rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.logo-image {
  height: 2.35rem;
  width: auto;
  object-fit: contain;
}

.header-center-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.document-title-input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.45rem 0.85rem;
  width: 16rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.document-title-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.view-switcher {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.view-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.view-btn.active {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-signin {
  background: transparent;
  border: none;
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s;
}

.btn-signin:hover {
  color: #0f172a;
}

.btn-pill-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Secondary Toolbar */
.header-secondary {
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  width: 100%;
  padding: 0.55rem 2rem;
}

.header-secondary-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.progress-val {
  color: #2563eb;
  font-family: monospace;
  font-weight: 800;
}

.progress-bar-bg {
  width: 8rem;
  background: #e2e8f0;
  height: 0.5rem;
  border-radius: 1rem;
  overflow: hidden;
  padding: 1px;
  border: 1px solid #cbd5e1;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg, #2563eb, #10b981);
  transition: width 0.4s ease;
}

.toolbar-center-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.template-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.toolbar-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
}

.select-input {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.75rem;
  border-radius: 0.6rem;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.toolbar-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.swatch-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.2s, opacity 0.2s;
}

.swatch-dot:hover, .swatch-dot.active {
  opacity: 1;
  /* Removed transform: scale(1.25) so it stays normal size */
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px #cbd5e1;
}

.swatch-dot.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0f172a;
}

/* Landing Hero Section */
.landing-container {
  position: relative;
  min-height: calc(100vh - 4rem);
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.06), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-main-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-gradient-subtitle {
  display: block;
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(90deg, #1d4ed8, #4f46e5, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.25rem;
}

.hero-description-text {
  font-size: 1.15rem;
  color: #475569;
  max-width: 44rem;
  margin: 1.75rem auto 2.5rem auto;
  line-height: 1.6;
  font-weight: 400;
}

.hero-button-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 64rem;
  margin-top: 5rem;
}

.feature-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.icon-bubble {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.icon-bubble-blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.icon-bubble-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.icon-bubble-purple {
  background-color: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.feature-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-body-text {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
}

/* 3-Pane Workspace Layout */
/* 3-Pane Workspace Layout */
.workspace-container {
  height: calc(100vh - 6.5rem);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Pane 1: Dashboard Sidebar */
.pane-sidebar {
  width: 16rem;
  background-color: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.btn-icon {
  background: none;
  border: none;
  color: #64748b;
  padding: 0.4rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: #0f172a;
  background-color: #e2e8f0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.nav-item-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-item-btn.active {
  background-color: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 800;
}

/* Pane 2: Form Editor */
.pane-editor {
  flex: 1;
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.editor-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.editor-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  background-color: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 0.4rem;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  color: #0f172a;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.input-field {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.editor-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-next {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
}

/* Pane 3: Live Preview Canvas */
.pane-preview {
  flex: 1;
  background-color: #f1f5f9;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1rem;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.preview-canvas-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 4rem;
  padding-top: 0.5rem;
}

/* Standalone A4 Paper Sheet Styling with Middle Watermark */
.a4-paper {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  background-color: #ffffff;
  color: #0f172a;
  padding: 12mm;
  box-sizing: border-box;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  transform-origin: top center;
  transition: transform 0.2s ease;
  margin: 0 auto 2rem auto;
  overflow: hidden;
}

.a4-paper * {
  box-sizing: border-box;
}

.a4-page-number {
  position: absolute;
  bottom: 8mm;
  right: 12mm;
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
  font-weight: bold;
}

/* Template Specific Paper Fonts */
.a4-paper.tpl-classic {
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.a4-paper.tpl-modern {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.a4-paper.tpl-softaze {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.softaze-qr-badge {
  display: none;
}

.resume-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 380px;
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.resume-watermark-overlay img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.resume-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  max-width: 28rem;
  width: 100%;
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Modern Auth Page Layout */
.auth-page-wrapper {
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
              #f8fafc;
}

.auth-layout-container {
  display: flex;
  width: 100%;
  max-width: 1050px;
  background: #ffffff;
  border-radius: 1.75rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12),
              0 0 0 1px rgba(226, 232, 240, 0.8);
  overflow: hidden;
  min-height: 560px;
}

/* Left Showcase Panel */
.auth-showcase-panel {
  flex: 1.15;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 60%, #1e293b 100%);
  color: #ffffff;
  padding: 3.25rem 2.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-showcase-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.25), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.2), transparent 50%);
  pointer-events: none;
}

.auth-showcase-content {
  position: relative;
  z-index: 2;
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.auth-logo-card {
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.auth-showcase-logo {
  height: 2.1rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.auth-badge-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a5b4fc;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.auth-showcase-heading {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.auth-gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-showcase-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 95%;
}

.auth-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.auth-feature-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-feature-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.1rem;
}

.auth-feature-item p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.auth-mockup-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  position: relative;
}

.auth-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.auth-mockup-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-mockup-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.auth-mockup-role {
  font-size: 0.7rem;
  color: #94a3b8;
}

.auth-mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.auth-mockup-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.auth-mockup-line.long { width: 90%; }
.auth-mockup-line.medium { width: 70%; }
.auth-mockup-line.short { width: 45%; }

.auth-mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Right Form Panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.5rem;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 24rem;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.auth-notice-banner {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.4;
}

.auth-card-header {
  margin-bottom: 1.25rem;
}

.auth-card-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.auth-card-subtext {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.auth-tabs {
  display: flex;
  background-color: #f1f5f9;
  padding: 0.3rem;
  border-radius: 0.85rem;
  margin-bottom: 1.35rem;
  border: 1px solid #e2e8f0;
  gap: 0.25rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.auth-tab-btn svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.auth-tab-btn:hover {
  color: #0f172a;
}

.auth-tab-btn.active {
  background-color: #ffffff;
  color: #2563eb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.auth-tab-btn.active svg {
  opacity: 1;
}

/* Input Fields with Icons */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon {
  padding-left: 2.75rem !important;
}

.input-with-action {
  padding-right: 2.75rem !important;
}

.input-field:focus + .input-icon,
.input-icon-wrapper:focus-within .input-icon {
  color: #2563eb;
}

.input-action-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 0.3rem;
  border-radius: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.input-action-btn:hover {
  color: #0f172a;
}

.auth-error-banner {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  margin-bottom: 1.1rem;
  text-align: center;
  line-height: 1.4;
}

.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem !important;
  font-size: 0.9rem !important;
  border-radius: 0.85rem !important;
  margin-top: 0.5rem;
}

.auth-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.auth-card-footer p {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .auth-layout-container {
    flex-direction: column;
    max-width: 480px;
  }
  .auth-showcase-panel {
    padding: 2.25rem 2rem;
  }
  .auth-mockup-card {
    display: none;
  }
  .auth-showcase-heading {
    font-size: 1.6rem;
  }
  .auth-form-panel {
    padding: 2rem 1.75rem;
  }
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
}

.hidden {
  display: none !important;
}

/* Sidebar Mobile Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Comprehensive Device Responsiveness (Mobile, Tablet, Foldable, Desktop)
   ========================================================================== */

/* Tablet & Mobile Screens (<= 1024px) */
@media (max-width: 1024px) {
  .header-primary {
    padding: 0.5rem 1rem;
    height: auto;
    min-height: 3.75rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .header-center-group {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid #f1f5f9;
  }

  .document-title-input {
    flex: 1;
    width: auto;
    max-width: 13rem;
  }

  .header-secondary {
    padding: 0.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-secondary-inner {
    min-width: max-content;
    gap: 1rem;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .hero-main-title, .hero-gradient-subtitle {
    font-size: 2.75rem;
  }

  /* Fixed Off-Canvas Dashboard Sidebar Drawer */
  .pane-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 17.5rem;
    max-width: 85vw;
    z-index: 50;
    background: #ffffff;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .pane-sidebar.open {
    transform: translateX(0);
  }

  .workspace-container {
    height: calc(100vh - 7.25rem);
  }
}

/* Smartphone & Narrow Screens (<= 768px) */
@media (max-width: 768px) {
  .landing-container {
    padding: 2.5rem 1rem;
  }

  .hero-main-title, .hero-gradient-subtitle {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-description-text {
    font-size: 0.95rem;
    margin: 1.25rem auto 1.75rem auto;
  }

  .hero-button-cta {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .workspace-container {
    flex-direction: column;
    height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }

  .pane-editor, .pane-preview {
    width: 100%;
    height: 100%;
    flex: 1;
    border-right: none;
  }

  .editor-header {
    padding: 0.75rem 1rem;
  }

  .editor-body {
    padding: 1rem;
  }

  .editor-footer {
    padding: 0.75rem 1rem;
  }

  .preview-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .preview-canvas-container {
    padding-bottom: 2rem;
  }

  /* Admin Responsive Layout */
  .admin-header-card {
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .admin-stat-card {
    padding: 1rem;
  }

  .modal-card {
    padding: 1.25rem;
    border-radius: 1.25rem;
    max-height: 92vh;
    overflow-y: auto;
  }
}

/* Extra Small Phones & Micro Viewports (<= 480px) */
@media (max-width: 480px) {
  .logo-image {
    height: 1.85rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .btn-signin {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }

  .btn-pill-cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
  }

  .view-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .document-title-input {
    max-width: 10rem;
    font-size: 0.75rem;
  }

  .hero-main-title, .hero-gradient-subtitle {
    font-size: 1.65rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .form-group {
    margin-bottom: 0.9rem;
  }

  .input-field {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
  }

  .user-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .admin-tab-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Admin Executive Portal Styling */
.admin-header-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.admin-nav-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.admin-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.55rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.admin-tab-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.admin-tab-btn.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.admin-table-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  overflow-x: auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.825rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.badge-role-admin {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 800;
  font-size: 0.7rem;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-role-user {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.7rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-status-blocked {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.7rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Print & PDF Export Rules for Clean High-Definition A4 Output */
@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    width: 210mm !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely hide all UI shell controls, buttons, toolbars, sidebars, modals, headers, watermark, and page metadata */
  header, nav, aside, button,
  .app-header,
  #page-home,
  #page-auth,
  #pane-sidebar,
  #pane-editor,
  .preview-toolbar,
  .modal-backdrop,
  .a4-page-number {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Show QR Code verification badge on paid download / print export */
  .softaze-qr-badge {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1.5px dashed #cbd5e1 !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  #page-builder,
  .workspace-container,
  .pane-preview,
  .preview-canvas-container,
  #resume-preview-container {
    display: block !important;
    position: static !important;
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .a4-paper {
    position: relative !important;
    width: 210mm !important;
    min-height: 297mm !important;
    box-sizing: border-box !important;
    padding: 12mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    transform: none !important;
    page-break-after: always;
    page-break-inside: avoid;
  }

  .pdf-exporting .a4-paper {
    min-height: 297mm !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .a4-paper:last-child {
    page-break-after: auto;
  }
}

/* User Dashboard Layout & Cards */
.dashboard-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.dashboard-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dashboard-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dashboard-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dashboard-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafafa;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.card-body {
  padding: 1.5rem;
}

.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 0.88rem;
}

.profile-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  color: #64748b;
  font-weight: 600;
}

.detail-value {
  color: #0f172a;
  font-weight: 700;
}

.badge-active {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}

.progress-bar-track {
  width: 100%;
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 1rem;
  transition: width 0.4s ease;
}

.referral-code-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.4rem 0.85rem;
  border-radius: 0.6rem;
}

.btn-copy-code {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy-code:hover {
  background: #1d4ed8;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 1rem;
  text-align: center;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.2rem;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.dashboard-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

/* ====================================================================
   MODERN ADMIN PANEL STYLES (EXECUTIVE SAAS GRADE)
   ==================================================================== */
.admin-container {
  max-width: 98%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

.admin-header-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 1.25rem;
  padding: 1.75rem 2.25rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.45);
}

.admin-header-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
}

.admin-header-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-header-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-header-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.55rem 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.admin-header-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.85rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: -2px;
  border-radius: 0.5rem 0.5rem 0 0;
}

.admin-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.admin-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
  font-weight: 800;
}

.admin-tab-badge {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  min-width: 1.2rem;
  text-align: center;
}

.admin-tab-btn.active .admin-tab-badge {
  background: #2563eb;
  color: #ffffff;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.admin-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #2563eb;
}

.admin-kpi-card.kpi-green::before { background: #059669; }
.admin-kpi-card.kpi-purple::before { background: #7c3aed; }
.admin-kpi-card.kpi-amber::before { background: #d97706; }
.admin-kpi-card.kpi-rose::before { background: #e11d48; }

.admin-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.admin-kpi-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.admin-kpi-icon {
  font-size: 1.25rem;
  opacity: 0.85;
}

.admin-kpi-val {
  font-size: 1.95rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.admin-kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  font-weight: 500;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.admin-card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-card-body {
  padding: 1.5rem 1.75rem;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.4rem 0.85rem;
  width: 300px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: #0f172a;
}

.badge-role-admin {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-role-user {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.2rem 0.55rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-btn-settle {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 0.45rem;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.admin-btn-settle:hover {
  background: #047857;
  transform: translateY(-1px);
}

.admin-shortcut-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-shortcut-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(37, 99, 235, 0.15);
}

.admin-shortcut-btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.admin-shortcut-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}




.badge-role-affiliate { background: rgba(5, 150, 105, 0.1); color: #059669; border: 1px solid rgba(5, 150, 105, 0.25); padding: 0.2rem 0.55rem; border-radius: 0.4rem; font-weight: 700; font-size: 0.75rem; }


/* Resume Print & PDF Export Fixes */
.resume-section, 
.resume-item, 
.softaze-qr-badge,
[style*="margin-bottom: 0.85rem"] {
    page-break-inside: avoid;
    break-inside: avoid;
}

.pdf-exporting {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pdf-exporting .a4-paper {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    box-sizing: border-box !important;
    padding: 12mm !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    overflow: hidden !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}

.pdf-exporting .a4-paper:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
}

.html2pdf__page-break {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    page-break-before: always !important;
    break-before: page !important;
}

/* Watermark fixes */
.resume-watermark-overlay {
    /* Hardcode position so it doesn't move across pages unpredictably in html2canvas */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 380px;
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.pdf-exporting .softaze-qr-badge {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

/* Mobile & Smart Phone Responsiveness Fixes */
@media (max-width: 640px) {
  .dashboard-banner {
    padding: 1.25rem 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .dashboard-banner-content {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  .dashboard-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
  }
  .dashboard-title {
    font-size: 1.25rem !important;
  }
  .dashboard-sub {
    font-size: 0.78rem !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .modal-card {
    padding: 1.25rem 1rem !important;
    width: 95% !important;
    max-width: 95% !important;
    border-radius: 0.75rem !important;
  }
  .view-switcher {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }
  .toolbar-center-controls {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .admin-header-card {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 400px) {
  .stats-row {
    grid-template-columns: 1fr !important;
  }
}



/* ==========================================================================
   INPUT PREFIX & DATE VALIDATION STYLES
   ========================================================================== */
.input-prefix-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-family: monospace;
  font-weight: 600;
  color: #64748b;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  white-space: nowrap;
  user-select: none;
}
.input-prefix-group .input-field {
  border-radius: 0 0.5rem 0.5rem 0 !important;
  flex: 1;
}
.date-error-hint {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.input-error {
  border-color: #ef4444 !important;
  background-color: #fff1f2 !important;
}

/* ==========================================================================
   VIRTUAL AI RESUME ASSISTANT WIDGET
   ========================================================================== */
.ai-assistant-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), 0 8px 10px -6px rgba(124, 58, 237, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ai-assistant-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px -5px rgba(37, 99, 235, 0.5);
}
.ai-modal-card {
  max-width: 620px;
  width: 95%;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.ai-modal-header {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-tab-nav {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.ai-tab-btn {
  flex: 1;
  padding: 0.75rem 0.5rem;
  border: none;
  background: none;
  font-size: 0.825rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.ai-tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  background: #ffffff;
}
.ai-tab-body {
  padding: 1.5rem;
  max-height: 480px;
  overflow-y: auto;
}
.ai-suggestion-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  transition: all 0.2s;
}
.ai-suggestion-card:hover {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.ai-apply-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.ai-apply-btn:hover {
  background: #1d4ed8;
}
