/**
 * Badhte Jao - Online Tools Engine CSS
 * Styles for Tool Hub, Workspace, Preview Engine, Settings, and Print Stylesheet
 */

:root {
  --ot-primary: #198754;
  --ot-primary-hover: #157347;
  --ot-secondary: #0d6efd;
  --ot-secondary-hover: #0b5ed7;
  --ot-accent: #ffc107;
  --ot-dark: #212529;
  --ot-light-bg: #f8fafc;
  --ot-border: #e2e8f0;
  --ot-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --ot-card-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --ot-radius: 12px;
}

/* ==========================================================================
   Tool Landing Hub & Tool Cards
   ========================================================================== */
.ot-hero {
  background: linear-gradient(135deg, #0f5132 0%, #198754 50%, #20c997 100%);
  color: #ffffff;
  padding: 45px 0 35px;
  border-radius: 0 0 24px 24px;
  margin-bottom: 35px;
}

.ot-hero h1 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ot-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ot-card {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  box-shadow: var(--ot-card-shadow);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.ot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ot-card-hover);
  border-color: #cbd5e1;
}

.ot-card-header {
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ot-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #e8f5e9;
  color: var(--ot-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.ot-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ot-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.ot-card-body {
  padding: 0 20px 20px;
  flex: 1;
}

.ot-card-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
}

.ot-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ot-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ot-tag.free {
  background: #e6f4ea;
  color: #137333;
}

.ot-card-footer {
  padding: 16px 20px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   Trust / Features Bar
   ========================================================================== */
.ot-trust-bar {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ot-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.ot-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* ==========================================================================
   Tool Workspace Layout & Drag-Drop Engine
   ========================================================================== */
.ot-workspace-card {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  box-shadow: var(--ot-card-shadow);
  padding: 28px;
  margin-bottom: 35px;
}

.ot-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 16px;
  padding: 45px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.ot-dropzone:hover,
.ot-dropzone.dragover {
  border-color: var(--ot-primary);
  background: #f0fdf4;
}

.ot-dropzone-icon {
  font-size: 48px;
  color: var(--ot-primary);
  margin-bottom: 14px;
}

.ot-dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ot-dark);
  margin-bottom: 6px;
}

.ot-dropzone-hint {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 16px;
}

.ot-privacy-notice {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* File Selected Badge */
.ot-file-info {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border: 1px solid #e2e8f0;
}

.ot-file-name {
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ot-file-size {
  font-size: 0.82rem;
  color: #64748b;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   Progress & Processing Indicators
   ========================================================================== */
.ot-progress-wrapper {
  margin: 20px 0;
  display: none;
}

.ot-progress-bar {
  height: 8px;
  border-radius: 4px;
}

.ot-status-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Dual Column Workspace (Settings + Preview)
   ========================================================================== */
.ot-editor-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .ot-editor-grid {
    grid-template-columns: 1fr;
  }
}

.ot-settings-panel {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ot-settings-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ot-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ot-form-group {
  margin-bottom: 16px;
}

.ot-form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.ot-range-value {
  color: var(--ot-primary);
  font-weight: 700;
}

/* ==========================================================================
   Preview Canvas & Stage
   ========================================================================== */
.ot-preview-panel {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.ot-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ot-preview-stage {
  flex: 1;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  position: relative;
  min-height: 350px;
}

.ot-canvas-wrapper {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.ot-canvas-wrapper canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Aadhaar Cards Split Preview */
.ot-card-pair-wrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ot-single-card-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.ot-single-card-box h6 {
  font-weight: 700;
  margin-bottom: 10px;
  color: #334155;
}

/* ==========================================================================
   Action & Download Buttons
   ========================================================================== */
.ot-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.btn-ot-primary {
  background: var(--ot-primary);
  color: #ffffff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.btn-ot-outline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-ot-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

/* ==========================================================================
   Content Sections (How To Use, Features, FAQs)
   ========================================================================== */
.ot-content-section {
  background: #ffffff;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  padding: 32px 28px;
  margin-bottom: 30px;
}

.ot-section-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ot-dark);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.ot-section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--ot-primary);
  border-radius: 2px;
}

.ot-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}

.ot-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ot-primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ot-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.ot-faq-accordion .accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.ot-faq-accordion .accordion-button {
  font-weight: 700;
  color: #1e293b;
  background: #ffffff;
  padding: 16px 20px;
}

.ot-faq-accordion .accordion-button:not(.collapsed) {
  background: #f0fdf4;
  color: var(--ot-primary);
}

.ot-faq-accordion .accordion-body {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #475569;
  background: #ffffff;
}

/* ==========================================================================
   Password Input Modal & Overlay
   ========================================================================== */
.ot-password-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0;
}

/* ==========================================================================
   PRINT ENGINE STYLESHEET (@media print)
   Strictly prints ONLY the generated output without any UI/ads/headers
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  .main-header,
  .footer,
  .ot-hero,
  .ot-trust-bar,
  .ot-settings-panel,
  .ot-dropzone,
  .ot-file-info,
  .ot-actions-bar,
  .ot-content-section,
  .adsbygoogle,
  .breadcrumb,
  .sharethis-inline-share-buttons,
  .ot-preview-header,
  nav,
  header,
  footer {
    display: none !important;
  }

  #otPrintContainer,
  #otPrintContainer * {
    visibility: visible !important;
  }

  #otPrintContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  @page {
    margin: 0;
    size: auto;
  }
}
