/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.icon {
    width: 1rem;
    height: 1rem;
}

/* Header Styles */
.header {
    display: flex;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .logo-icon {
    width: 2rem;
    height: 2rem;
    background: #3b82f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
} */

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.nav {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #1f2937;
}

.account-btn {
    background: #3b82f6;
    color: white;
    border: none;
    margin-left: 5em;
    font-size: small;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.account-btn:hover {
    background: #2563eb;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    padding: 4rem 0 3rem 0;
}


.hero-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-left: 10rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.feature span {
    color: #374151;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Upload Section */
.upload-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
}

.upload-area {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.upload-area.drag-active {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.02);
}

.upload-icon {
    width: 4rem;
    height: 4rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
    transition: color 0.2s;
}

.upload-area.drag-active .upload-icon {
    color: #3b82f6;
}

.upload-text {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.upload-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.upload-btn:hover {
    background: #2563eb;
}

.add-more-section {
    margin-top: 2rem;
}

.add-more-area {
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.add-more-area:hover {
    border-color: #3b82f6;
}

.add-more-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: color 0.2s;
}

.add-more-btn:hover {
    color: #2563eb;
}

/* File Details Section */
.file-details-section {
    max-width: 96rem;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 4rem;
}

.file-details-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.file-details-header {
    background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.file-details-header .header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.header-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.global-format-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.format-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.format-select:hover {
    background: #f9fafb;
}

.format-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

.convert-all-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.convert-all-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .file-details-header .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-controls {
        flex-direction: row;
        align-items: center;
    }
}

/* File List */
.file-list {
    divide-y: 1px solid #f3f4f6;
}

.file-item {
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.file-item:hover {
    background: #f9fafb;
}

.file-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.file-icon-container {
    flex-shrink: 0;
}

.file-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.file-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.file-main-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.format-conversion {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.format-conversion .original-format {
    font-weight: 500;
}

.format-conversion .arrow {
    color: #9ca3af;
}

.format-conversion .target-format {
    font-weight: 500;
    color: #3b82f6;
}

.file-size {
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease-out;
    border-radius: 9999px;
}

/* Status and Actions */
.status-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.status-badge.completed {
    color: #059669;
    background: #ecfdf5;
    border-color: #d1fae5;
}

.status-badge.converting {
    color: #2563eb;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.status-badge.error {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.status-badge.uploaded {
    color: #6b7280;
    background: #f9fafb;
    border-color: #e5e7eb;
}

.status-badge svg {
    width: 1rem;
    height: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.download-btn:hover {
    color: #047857;
}

.download-btn svg {
    width: 1rem;
    height: 1rem;
}

/* File Actions */
.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.file-format-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.file-format-select:hover {
    background: #f9fafb;
}

.file-format-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
    opacity: 0;
}

.file-item:hover .action-btn {
    opacity: 1;
}

.action-btn:hover {
    color: #3b82f6;
}

.action-btn.retry:hover {
    color: #3b82f6;
}

.action-btn.remove:hover {
    color: #dc2626;
}

.action-btn svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 640px) {
    .file-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .file-actions {
        margin-left: 0;
        justify-content: flex-start;
    }
    
    .action-btn {
        opacity: 1;
    }
}

/* File Details Footer */
.file-details-footer {
    background: #f9fafb;
   padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content-footer {

    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    gap: 1rem;
    text-align: center;
    margin: 0 auto;
}

.status-counts {
    display: flex;
    gap: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: #f9fafb;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    transition: transform 0.2s;
}

.pricing-card.popular {
    ring: 2px;
    ring-color: #3b82f6;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-content {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    color: #6b7280;
    font-size: 0.875rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
}

.period {
    color: #6b7280;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.plan-description {
    color: #6b7280;
    font-size: 0.875rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}
.plan-btn {
  /* Make it a block-level box and fill its container */
  display: block;
  width: 100%;
  
  /* Spacing & typography */
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  /* line-height: 1.4; */
  text-align: center;
  text-decoration: none;   /* for the <a> */
  
  /* Colors & borders */
  background-color: #f1f3f5;
  color: #212529;
  border: none;
  border-radius: 0.5rem;
  
  /* Behavior */
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  
  /* Remove any native button styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.plan-btn:hover {
  background-color: #e2e6ea;
}
.plan-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.plan-btn {
    background: #f3f4f6;
    color: #1f2937;
}

.plan-btn:hover {
    background: #e5e7eb;
}

.popular-btn {
    background: #3b82f6;
    color: white;
}

.popular-btn:hover {
    background: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .file-details-section {
        padding: 0 0.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 24rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}

/* Animation Classes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.spin {
    animation: spin 1s linear infinite;
}
.section-divider {
  border: none;
  height: 3px;
  width: 80px;                 /* adjust length */
  background-color: #0066ff;   /* match your primary color */
  margin: 3rem auto;           /* vertical spacing, centered */
}

.converter-footer {
  width: 100%;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  background-color: #fff;
  margin-top: 3rem;
}

.footer-content {
  max-width: 98%;
  margin: 0 auto;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  padding: 12px 20px;
  background-color: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show {
  /* when .show is added, fade+slide it in */
  opacity: 1;
  transform: translateX(0);
}
.toast.success {
  border-left: 4px solid #10b981;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

.toast.error {
  border-left: 4px solid #ef4444;
}
@media (max-width: 768px) {
      
  .converter-footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }

}


.pricing-section {
  margin: 5rem 0;
}
/* Features */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}


/* slightly reduce the feature-text weight */
.main-features li {
  font-weight: 400;   
}


.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.feature-icon-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.formats {
  background-color: #ebf8ff;
  color: #0c9fc7;
}

.speed {
  background-color: #ebf4ff;
  color: #3b82f6;
}

.cloud {
  background-color: #ecfdf5;
  color: #10b981;
}

.settings {
  background-color: #eef2ff;
  color: #6366f1;
}

.security {
  background-color: #f0fdf4;
  color: #22c55e;
}

.devices {
  background-color: #f0f9ff;
  color: #0ea5e9;
}


  @media (max-width: 480px) {
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    align-items: center;
  }
  
  .toast {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    text-align: center;
  }}