/* ==========================================================================
   iLovePDF STYLE - PDF LOCK & UNLOCK STUDIO (SUMIT KUMAR BRANDING)
   ========================================================================== */

:root {
  --ilove-red: #e5322d;
  --ilove-red-hover: #d32520;
  --ilove-red-light: rgba(229, 50, 45, 0.08);
  --ilove-blue: #2563eb;
  --ilove-blue-hover: #1d4ed8;
  --ilove-dark: #1e293b;
  --ilove-gray-bg: #f4f5f8;
  --ilove-border: #e2e8f0;
  --ilove-text-muted: #64748b;
  --ilove-card-bg: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

body.ilove-body {
  background-color: var(--ilove-gray-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   BRAND HEADER & BADGE STYLING (MATCHES ID CARD STUDIO)
   ========================================================================== */
.brand-header-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.15;
}

.brand-header-title .brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-header-title .brand-sep {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 1.1rem;
  margin: 0 2px;
}

.brand-header-title .tool-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

@media (max-width: 768px) {
  .brand-header-title {
    gap: 4px;
  }
  .brand-header-title .brand-name {
    font-size: 0.95rem;
  }
  .brand-header-title .tool-badge-pill {
    font-size: 0.7rem;
    padding: 2px 7px;
  }
}

.ilove-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.ilove-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.55rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.ilove-brand-i {
  color: #1a1a1a;
  font-weight: 900;
}

.ilove-heart-icon {
  width: 24px;
  height: 24px;
  margin: 0 1px;
}

.ilove-brand-text {
  color: #1a1a1a;
}

.brand-sub-badge {
  color: var(--ilove-red);
}

.ilove-nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ilove-nav-item {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ilove-nav-item:hover, .ilove-nav-item.active {
  color: var(--ilove-red);
}

.nav-arrow {
  font-size: 0.7rem;
  margin-left: 2px;
}

.ilove-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ilove-login-btn {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  transition: color 0.2s ease;
}

.ilove-login-btn:hover {
  color: var(--ilove-red);
}

.ilove-signup-btn {
  text-decoration: none;
  background-color: var(--ilove-red);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.ilove-signup-btn:hover {
  background-color: var(--ilove-red-hover);
}

.ilove-grid-menu-btn {
  background: transparent;
  border: none;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.ilove-grid-menu-btn:hover {
  color: var(--ilove-red);
}

/* ==========================================================================
   TOOL MAIN CONTAINER
   ========================================================================== */
.ilove-tool-main {
  flex: 1;
  padding: 1.5rem 0 3.5rem 0;
  position: relative;
}

/* Mode Switcher Tabs */
.tool-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.tool-tabs-pill {
  display: inline-flex;
  background: #ffffff;
  padding: 4px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--ilove-border);
  gap: 4px;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-tab-btn:hover {
  color: var(--ilove-red);
  background: var(--ilove-red-light);
}

.tool-tab-btn.active {
  background: var(--ilove-red);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(229, 50, 45, 0.3);
}

.tool-tab-btn.active#tabLockMode {
  background: var(--ilove-blue);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   STAGE 1: HERO & SELECT BUTTON (EXACT MATCH TO SCREENSHOT)
   ========================================================================== */
.ilove-hero-stage {
  text-align: center;
  padding: 2.5rem 1rem 4rem 1rem;
}

.ilove-hero-center-box {
  max-width: 800px;
  margin: 0 auto;
}

.ilove-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  letter-spacing: -0.5px;
}

.ilove-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.45;
  margin: 0 auto 3rem auto;
  max-width: 620px;
}

/* Uploader Wrap */
.ilove-uploader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.ilove-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ilove-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ilove-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  height: 70px;
  width: 290px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(229, 50, 45, 0.3);
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-ilove-select:hover {
  background-color: var(--ilove-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(229, 50, 45, 0.4);
}

.btn-ilove-select:active {
  transform: translateY(0);
}

.ilove-cloud-icons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-cloud-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ilove-red);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 50, 45, 0.3);
  transition: all 0.2s ease;
}

.btn-cloud-icon:hover {
  background: var(--ilove-red-hover);
  transform: scale(1.1);
}

.ilove-droptxt {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 1.25rem;
}

/* ==========================================================================
   FOOTER (Exact Match to Screenshot)
   ========================================================================== */
.ilove-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 1.1rem 2rem;
  margin-top: auto;
}

.ilove-footer-content {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

.btn-cloud-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ilove-border);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
}

.btn-cloud-icon:hover {
  color: var(--ilove-red);
  border-color: var(--ilove-red);
  transform: scale(1.08);
}

.ilove-droptxt {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 1.25rem;
}

/* Features Row */
.ilove-features-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.ilove-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}

.feat-bullet {
  font-size: 1.1rem;
}

/* ==========================================================================
   STAGE 2: WORKSPACE & SIDEBAR (iLovePDF 2-Column Work Area)
   ========================================================================== */
.ilove-workspace-stage {
  display: flex;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: flex-start;
}

.ilove-canvas-area {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--ilove-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 1.75rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.canvas-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ilove-border);
  margin-bottom: 2rem;
}

.btn-add-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid var(--ilove-border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-more:hover {
  border-color: var(--ilove-red);
  color: var(--ilove-red);
  background: var(--ilove-red-light);
}

.file-count-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 9999px;
}

.pdf-card-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pdf-document-card {
  width: 220px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 1.25rem;
  position: relative;
  text-align: center;
  transition: all 0.25s ease;
}

.pdf-document-card:hover {
  transform: translateY(-4px);
  border-color: var(--ilove-red);
  box-shadow: 0 14px 30px rgba(229, 50, 45, 0.15);
}

.btn-remove-card {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.btn-remove-card:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.pdf-preview-box {
  position: relative;
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.5rem 0.5rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lock-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(229, 50, 45, 0.12);
  color: var(--ilove-red);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-top: 8px;
  border: 1px solid rgba(229, 50, 45, 0.2);
}

.pdf-meta-box {
  text-align: center;
}

.pdf-filename {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.pdf-filesize {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   RIGHT ACTION SIDEBAR (iLovePDF Clean Sidebar)
   ========================================================================== */
.ilove-sidebar {
  width: 360px;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--ilove-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ilove-border);
  background: #fcfdfe;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.sidebar-body {
  padding: 1.5rem;
  flex: 1;
}

.sidebar-info-box {
  display: flex;
  gap: 10px;
  background: var(--ilove-red-light);
  border-left: 3.5px solid var(--ilove-red);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.sidebar-info-box p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

.form-group-sidebar {
  margin-bottom: 1.25rem;
}

.form-label-sidebar {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.pwd-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-sidebar {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  padding: 0 42px 0 14px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.input-sidebar:focus {
  border-color: var(--ilove-red);
  box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.12);
}

.btn-pwd-eye {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.btn-pwd-eye:hover {
  color: var(--ilove-red);
}

.sidebar-error-text {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 5px;
  min-height: 16px;
}

.sidebar-help-hint {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 8px;
}

/* Lock Mode Permissions */
.permission-toggles-box {
  background: #f8fafc;
  border: 1px solid var(--ilove-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 1rem;
}

.perm-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  cursor: pointer;
}

.perm-checkbox-item:last-child {
  margin-bottom: 0;
}

.perm-checkbox-item input {
  accent-color: var(--ilove-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Sidebar Footer & Big Action Button */
.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ilove-border);
  background: #fcfdfe;
}

.btn-ilove-action {
  width: 100%;
  height: 56px;
  background: var(--ilove-red);
  color: #ffffff;
  border-radius: 10px;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(229, 50, 45, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ilove-action:hover {
  background: var(--ilove-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(229, 50, 45, 0.4);
}

.btn-ilove-action:active {
  transform: translateY(0);
}

.btn-ilove-action.lock-action {
  background: var(--ilove-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-ilove-action.lock-action:hover {
  background: var(--ilove-blue-hover);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

.action-arrow-icon {
  transition: transform 0.2s ease;
}

.btn-ilove-action:hover .action-arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   STAGE 3: PROCESSING OVERLAY
   ========================================================================== */
.ilove-processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.processing-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.ilove-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #e2e8f0;
  border-top-color: var(--ilove-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem auto;
}

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

.processing-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}

.processing-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   STAGE 4: SUCCESS & DOWNLOAD SCREEN (iLovePDF Style)
   ========================================================================== */
.ilove-success-stage {
  text-align: center;
  padding: 2.5rem 1rem 4rem 1rem;
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
  animation: popSuccess 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popSuccess {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.65rem 0;
}

.success-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0 auto 2rem auto;
  max-width: 540px;
}

.success-action-wrap {
  margin-bottom: 2.5rem;
}

.btn-ilove-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--ilove-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  height: 64px;
  padding: 0 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(229, 50, 45, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ilove-download:hover {
  background-color: var(--ilove-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(229, 50, 45, 0.45);
}

.next-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.btn-next-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--ilove-border);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.btn-next-action:hover {
  border-color: var(--ilove-red);
  color: var(--ilove-red);
  background: var(--ilove-red-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN (PC & MOBILE)
   ========================================================================== */
@media (max-width: 900px) {
  .ilove-workspace-stage {
    flex-direction: column;
    padding: 0 1rem;
  }
  
  .ilove-sidebar {
    width: 100%;
  }

  .ilove-title {
    font-size: 2.1rem;
  }

  .btn-ilove-select {
    width: 100%;
    max-width: 320px;
    font-size: 1.15rem;
    height: 60px;
    padding: 0 24px;
  }
}






