/* Tools Specific CSS - Premium Full-Width Glassmorphism Edition */

.tool-workspace {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  padding: 60px 0 100px;
  min-height: calc(100vh - 75px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--slate-800);
}

/* Glowing Background Mesh Orbs */
.tool-workspace::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 53, 102, 0.15) 0%, rgba(26, 53, 102, 0) 70%);
  border-radius: 50%;
  animation: floatOrb1 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.tool-workspace::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, rgba(217, 119, 6, 0) 70%);
  border-radius: 50%;
  animation: floatOrb2 22s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, 80px) scale(1.2); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -100px) scale(1.15); }
}

.tool-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Header */
.tool-header {
  text-align: center;
  margin-bottom: 50px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  font-size: 13px;
  font-weight: 700;
  color: var(--royal-dark);
  margin-bottom: 24px;
}

.tool-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.tool-header h1 {
  font-size: 42px;
  font-weight: 900;
  color: var(--royal-dark);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.tool-header p {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Main Tool Card (Full Width Desktop) */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 44px;
  margin-bottom: 48px;
}

/* Dropzone */
.dropzone {
  background: rgba(255, 255, 255, 0.5);
  border: 2px dashed rgba(26, 53, 102, 0.2);
  border-radius: 20px;
  padding: 60px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.dropzone:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--royal);
  box-shadow: 0 10px 30px rgba(26, 53, 102, 0.08);
}

.dropzone.dragover {
  background: rgba(240, 247, 255, 0.9);
  border-color: var(--gold);
  transform: scale(1.01);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.dz-content {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.dz-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--royal-dark), var(--royal));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 25px rgba(26, 53, 102, 0.25);
  transition: transform 0.3s ease;
}

.dropzone:hover .dz-icon-wrapper {
  transform: translateY(-4px) scale(1.05);
}

.dz-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.dropzone h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--royal-dark);
  margin-bottom: 8px;
}

.dropzone p {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.dz-btn {
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(26, 53, 102, 0.2);
}

.hidden {
  display: none !important;
}

/* Process Panel */
.process-panel {
  animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  margin-bottom: 28px;
}

.file-icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.25);
}

.file-icon-box svg {
  width: 26px;
  height: 26px;
}

.file-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.file-details h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-details p {
  font-size: 14px;
  color: var(--slate-500);
  font-weight: 500;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--slate-200);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Settings Controls Grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--royal-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-select, .form-input {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
  font-family: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-select:focus, .form-input:focus {
  border-color: var(--royal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 53, 102, 0.12);
}

/* Progress bar */
.progress-container {
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 800;
  color: var(--royal-dark);
  margin-bottom: 12px;
}

.progress-bar {
  height: 8px;
  background: rgba(226, 232, 240, 0.8);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #f59e0b);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4);
}

.w-100 {
  width: 100%;
}

.text-danger {
  color: #ef4444 !important;
}

/* Actions */
.action-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  width: 90%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--slate-100);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--royal-dark);
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  font-size: 15px;
  color: var(--slate-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.modal-footer {
  padding: 20px 30px;
  background: rgba(248, 250, 252, 0.6);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Info Cards Desktop Layout (2 Columns) */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

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

.info-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26, 53, 102, 0.08);
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card-icon.gold {
  background: rgba(217, 119, 6, 0.1);
  color: var(--gold);
}

.info-card-icon svg {
  width: 24px;
  height: 24px;
}

.info-card-header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--royal-dark);
}

.info-card ol, .info-card ul {
  padding-left: 20px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.7;
}

.info-card li {
  margin-bottom: 12px;
}

.info-card li strong {
  color: var(--slate-800);
}

/* --- Steps & Guidelines Styling for Info Cards --- */
.section-headline {
  font-size: 26px;
  font-weight: 900;
  color: var(--royal-dark, #122549);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--slate-600, #475569);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3566, #2563eb);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(26, 53, 102, 0.22);
}

.step-text {
  flex: 1;
}

.step-text h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-800, #1e293b);
  margin: 0 0 3px 0;
}

.step-text p {
  font-size: 13.5px;
  color: var(--slate-600, #475569);
  line-height: 1.5;
  margin: 0;
}

.guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.85);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.guideline-icon {
  font-size: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.guideline-text {
  font-size: 13.5px;
  color: var(--slate-700, #334155);
  line-height: 1.5;
  flex: 1;
}

.guideline-text strong {
  color: var(--slate-900, #0f172a);
}

/* FAQ Full-Width Card & Grid */
.faq-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.faq-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.faq-card-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--royal-dark);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.faq-item h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--royal-dark);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.7;
}

/* Feature Grid Styles */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(26, 53, 102, 0.08);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(26, 53, 102, 0.1), rgba(26, 53, 102, 0.02));
  color: var(--royal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--royal-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Video Container Styles */
.video-section {
  margin-bottom: 48px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 4px solid rgba(255, 255, 255, 0.8);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* Article/Guide Block */
.article-block {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 48px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 48px;
}

.article-block h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--royal-dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.article-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--royal-dark);
}

.article-block p {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-block ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.article-block li {
  margin-bottom: 12px;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Accordion FAQ Styles */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  margin-bottom: 12px;
  background: white;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}
.accordion-item:hover {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--royal-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--royal);
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}
.accordion-item.active .accordion-body {
  padding: 0 24px 20px 24px;
}
.accordion-body p {
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Global Tools Responsive Overhaul (Mobile, Tablet, Desktop)
   ========================================================================== */

@media (max-width: 768px) {
  .tool-workspace {
    padding: 32px 0 60px;
  }

  .tool-container {
    padding: 0 16px;
  }

  .tool-header {
    margin-bottom: 28px;
  }

  .tool-header h1 {
    font-size: clamp(22px, 5.5vw, 32px);
    margin-bottom: 12px;
  }

  .tool-header p {
    font-size: 15px;
    line-height: 1.5;
  }

  .glass-card {
    padding: 24px 18px;
    border-radius: 20px;
    margin-bottom: 36px;
  }

  .dropzone {
    padding: 36px 18px;
    border-radius: 18px;
  }

  .article-block {
    padding: 28px 20px;
    border-radius: 20px;
    margin-bottom: 36px;
  }

  .article-block h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .info-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .tool-workspace {
    padding: 20px 0 48px;
  }

  .tool-container {
    padding: 0 12px;
  }

  .tool-header {
    margin-bottom: 20px;
  }

  .tool-badge {
    padding: 6px 12px;
    font-size: 11px;
    margin-bottom: 14px;
    gap: 6px;
  }

  .tool-header h1 {
    font-size: clamp(20px, 6vw, 26px);
    margin-bottom: 8px;
  }

  .tool-header p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .glass-card {
    padding: 16px 12px;
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .dropzone {
    padding: 24px 12px 20px;
    border-radius: 14px;
  }

  .dz-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin-bottom: 12px;
  }

  .dz-icon-wrapper svg {
    width: 28px;
    height: 28px;
  }

  .dropzone h3 {
    font-size: 17px;
    margin-bottom: 4px;
  }

  .dropzone p {
    font-size: 12.5px;
    margin-bottom: 12px;
  }

  .article-block {
    padding: 20px 14px;
    border-radius: 16px;
    margin-bottom: 28px;
  }

  .article-block h2 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .info-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .accordion-header {
    padding: 16px;
    font-size: 14px;
  }

  .accordion-body {
    padding: 0 16px;
  }

  .accordion-item.active .accordion-body {
    padding: 0 16px 16px 16px;
  }
}

