:root {
    --bg-page: #F8FAFC;
    --bg-hero-start: #F0FDFA;
    --bg-hero-end: #F1F5F9;
    --bg-card: #FFFFFF;
    --primary-accent: #0D9488;
    --primary-accent-light: #CCFBF1;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --warning-bg: #FFFBEB;
    --warning-text: #B45309;
    --success-bg: #ECFDF5;
    --success-text: #065F46;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 600;
  }
  
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  h2.section-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1.25rem;
  }
  
  h3.subsection-title {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 0.75rem;
  }
  
  /* Navigation */
  .navbar {
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
  }
  
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-logo {
    height: 32px;
    width: auto;
  }
  
  .brand-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
  }
  
  /* REMOVED UNDERLINE FROM BRAND LINK */
  .brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .brand-link:hover {
    text-decoration: none;
    color: inherit;
  }
  
  /* Navigation Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 1002;
  }
  
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  /* Navigation Slider */
  .nav-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }
  
  .nav-slider.active {
    right: 0;
  }
  
  .slider-content {
    padding: 1.5rem;
    height: 100%;
  }
  
  .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .slider-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
  }
  
  .slider-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .slider-link {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
  }
  
  .slider-link:hover, .slider-link.active {
    background-color: var(--primary-accent-light);
    color: var(--primary-accent);
  }
  
  /* Overlay when slider is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-medium);
  }
  
  /* Cards */
  .card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .main-card {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
  }
  
  /* Centered Form Container */
  .centered-form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Form Elements */
  .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-group label {
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .input-group input, .input-group select, .input-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
  }
  
  .input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  }
  
  .input-help {
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Buttons */
  .btn {
    background: linear-gradient(to right, var(--primary-accent), #0f766e);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
  }
  
  .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
  }
  
  .btn-outline:hover {
    background: var(--primary-accent-light);
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--primary-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }
  
  .cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
  }
  
  .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    text-align: center;
  }
  
  .action-button:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
  }
  
  .action-button.secondary {
    background-color: var(--bg-page);
  }
  
  /* Upload Section */
  .upload-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .upload-area {
    border: 3px dashed var(--primary-accent);
    border-radius: 10px;
    padding: 40px 20px;
    margin: 20px 0;
    transition: all 0.3s;
    cursor: pointer;
    background-color: rgba(13, 148, 136, 0.05);
  }
  
  .upload-area:hover {
    background-color: rgba(13, 148, 136, 0.1);
    transform: translateY(-5px);
  }
  
  .upload-area i {
    font-size: 60px;
    color: var(--primary-accent);
    margin-bottom: 15px;
  }
  
  .upload-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-accent);
  }
  
  .upload-subtext {
    color: var(--text-medium);
    margin-bottom: 20px;
  }
  
  /* REDUCED SIZE OF BROWSE FILES BUTTON */
  #browseBtn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .file-input {
    display: none;
  }
  
  /* Controls */
  .controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .control-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .select-control {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: white;
    font-size: 1rem;
    min-width: 150px;
  }
  
  /* Preview Section */
  .preview-section {
    display: none;
    margin-bottom: 30px;
  }
  
  .preview-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-accent);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
  }
  
  .preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .page-preview {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background-color: white;
  }
  
  .page-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  }
  
  .page-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
  }
  
  .page-info {
    padding: 15px;
    text-align: center;
    background-color: #f8f9fa;
  }
  
  .page-number {
    font-weight: bold;
    color: var(--primary-accent);
  }
  
  /* Download Section */
  .download-section {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: none;
  }
  
  /* Status Messages */
  .status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
  }
  
  .status.success {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #c3e6cb;
  }
  
  .status.error {
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #f5c6cb;
  }
  
  .status.info {
    background-color: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
  }
  
  /* Loading Indicator */
  .loading {
    display: none;
    text-align: center;
    margin: 20px 0;
  }
  
  .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Action Buttons Grid */
  .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  
  /* Notices */
  .privacy-notice, .disclaimer-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .privacy-notice {
    background-color: var(--success-bg);
    border-left: 4px solid var(--success-text);
  }
  
  .disclaimer-box {
    background-color: var(--warning-bg);
    border-left: 4px solid var(--warning-text);
  }
  
  .privacy-title, .disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
  }
  
  .privacy-text, .disclaimer-text {
    font-size: 0.875rem;
    color: var(--text-medium);
  }
  
  /* Pro Tip and Quick Tip Styles */
  .pro-tip, .quick-tip {
    background-color: var(--primary-accent-light);
    border-left: 4px solid var(--primary-accent);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
  }
  
  .pro-tip strong, .quick-tip strong {
    color: var(--primary-accent);
  }
  
  /* Animations */
  .animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Footer */
  .footer {
    background-color: var(--bg-card);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
  }
  
  .footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: var(--primary-accent);
  }
  
  .disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* FAQ Section */
  .content-section {
    padding: 3rem 1rem;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .faq-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .faq-item {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  .faq-item h3 {
    color: var(--primary-accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .faq-item p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  /* Overview Section */
  .overview-section {
    padding: 4rem 1rem;
    background: var(--bg-page);
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .overview-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .overview-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .overview-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .overview-icon i {
    font-size: 1.5rem;
    color: var(--primary-accent);
  }
  
  .overview-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .overview-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .input-row {
      grid-template-columns: 1fr;
    }
    
    .controls {
      flex-direction: column;
    }
    
    .control-group {
      justify-content: center;
    }
    
    .preview-container {
      grid-template-columns: 1fr;
    }
    
    .action-buttons {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .btn {
      padding: 0.75rem 1rem;
      font-size: 0.8rem;
    }
    
    .upload-area {
      padding: 20px 10px;
    }
    
    .upload-area i {
      font-size: 40px;
    }
    
    .upload-text {
      font-size: 1rem;
    }
  }