/* Base imports */
@import url('themes/dark.css');
@import url('themes/light.css');

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Modern CSS Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Language dropdown styles */
.language-selector {
  position: relative;
  margin-left: 1rem;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 150px;
  box-shadow: 0 4px 20px var(--shadow);
  z-index: 1000;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.language-dropdown a:hover {
  background: var(--surface-light);
  color: var(--primary);
}

.language-dropdown a.active {
  background: var(--primary);
  color: var(--text);
}

.conversion-item.ad-native {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

/* Use default format badge styles */
.conversion-item.ad-native .format-badge {
    background-color: var(--mp4-color); /* or var(--mp3-color), depending */
    color: white;
    font-weight: 600;
}

.ad-container.center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 100%;
}

/* Table responsive styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.table-responsive th,
.table-responsive td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table-responsive th {
  background: var(--surface-light);
  font-weight: 600;
}

.table-responsive tr:last-child td {
  border-bottom: none;
}

/* User preferences styles */
.user-preferences {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preference-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.preference-btn:hover {
  color: var(--primary);
}

.preference-btn i {
  font-size: 1.25rem;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Navigation */
.navbar {
  background-color: var(--card-bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  margin-right: 0.5rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: rgba(67, 97, 238, 0.1);
}

.nav-links a i {
  font-size: 0.875rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,213.3C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.converter-card {
  position: relative;
  margin-top: -3rem;
  z-index: 10;
}

/* Input Group Styles */
.input-group {
  display: flex;
  margin-bottom: 1.5rem;
}

.input-group input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  border-color: var(--primary);
}

.input-group button {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group button:hover {
  background: linear-gradient(to right, var(--primary-hover), var(--secondary));
  transform: translateY(-2px);
}

/* Format Selector */
.format-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.format-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.format-option input {
  position: absolute;
  opacity: 0;
}

.format-option i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.format-option span {
  font-weight: 500;
}

.format-option.active {
  border-color: var(--primary);
  background-color: rgba(67, 97, 238, 0.05);
}

.format-option.active i {
  color: var(--primary);
}

.format-option:hover:not(.active) {
  border-color: var(--text-light);
}

/* Progress Bar */
.progress-container {
  margin: 1.5rem 0;
  display: none;
}

.progress-bar {
  height: 0.5rem;
  background-color: var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  width: 0;
  transition: width 0.5s ease;
  border-radius: 1rem;
}

.progress-status {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Video Info Display */
.video-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.thumbnail-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.thumbnail-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.format-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: white;
  text-transform: uppercase;
}

.format-badge.mp3 {
  background-color: var(--mp3-color);
}

.format-badge.mp4 {
  background-color: var(--mp4-color);
}

.video-details {
  flex: 1;
}

.video-details h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.video-meta p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-hover), var(--secondary));
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.btn-secondary {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(67, 97, 238, 0.2);
  color: var(--primary-hover);
}

/* Error Container */
.error-container {
  background-color: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1rem 0;
  color: var(--error);
}

.error-container h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.error-container pre {
  background-color: rgba(230, 57, 70, 0.05);
  padding: 1rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Recent Conversions - YouTube Style */
.recent-conversions {
  margin-top: 2rem;
}

.recent-conversions h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.conversions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.conversion-item {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.conversion-item:hover {
  transform: translateY(-2px);
}

.conversion-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.conversion-thumbnail a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.conversion-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 12px;
}

.conversion-info {
  padding: 12px;
}

.conversion-info h3 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.conversion-info h3 a {
  color: var(--text);
  text-decoration: none;
}

.conversion-info h3 a:hover {
  color: var(--primary);
}

.conversion-meta {
  font-size: 12px;
  color: var(--text-light);
}

.uploader {
  display: block;
  margin-bottom: 4px;
}

.meta-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-link:hover {
  color: var(--primary-hover);
}

/* Video Page Styles */
.video-page {
  margin-top: 2rem;
}

.video-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.video-main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-header h1 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.video-preview-section {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.preview-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.preview-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
  color: white;
}

.preview-btn.youtube {
  width: auto;
  height: auto;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  text-decoration: none;
  background: rgba(255, 0, 0, 0.8);
}

.preview-btn.youtube:hover {
  background: rgba(255, 0, 0, 1);
}

.video-description {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.video-description h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.video-description pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Video Sidebar */
.video-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-thumbnail {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.format-info-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.format-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-info {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.channel-info h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-name {
  font-size: 16px;
  font-weight: 500;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
}

.channel-link:hover {
  color: var(--primary-hover);
}

.video-stats {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.video-stats h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  background: var(--background);
  border-radius: 8px;
}

.stat-item i {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  font-weight: 500;
}

.floating-audio-player {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1rem;
  transition: bottom 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
}

.floating-audio-player.active {
  bottom: 0;
}

.floating-audio-player audio {
  max-width: 500px;
  width: 100%;
}

.close-player {
  border: none;
  background: none;
  color: red;
  padding: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* How to Use Section */
.how-to-use {
  margin: 3rem 0;
  text-align: center;
}

.how-to-use h2 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Footer */
footer {
  background-color: #2b2d42;
  color: white;
  padding: 3rem 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.footer-info p {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  font-size: 0.875rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--success);
}

.footer-links strong {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* About, FAQ, and Contact Page Specific Styles */
.mb-16 {
  margin-bottom: 4rem;
}

.mb-20 {
  margin-bottom: 5rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-icon i {
  color: inherit;
}

/* Contact Form Specific Styles */
form.space-y-6 > * + * {
  margin-top: 1.5rem;
}

textarea {
  resize: vertical;
}

/* Social Icons */
.flex.space-x-4 a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.flex.space-x-4 a:hover {
  color: var(--primary);
}


/* Responsive Styles */
@media (max-width: 768px) {
  .video-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .action-buttons .btn {
    padding: 12px 16px;
    margin-bottom: 8px;
  }
  
  .video-preview-section {
    max-height: 300px;
  }
  
  .video-header h1 {
    font-size: 1.3rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: 0 4px 10px var(--shadow);
    z-index: 1000;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links.mobile-menu-open {
    display: flex;
  }
  
  .input-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .input-group input {
    border-radius: 0.5rem;
    width: 100%;
  }

  .input-group button {
    border-radius: 0.5rem;
    width: 100%;
    padding: 1rem;
  }

  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .text-4xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .text-2xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .text-xl {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .gap-8, .gap-12 {
    gap: 1.5rem;
  }

/* Modern Contact Form Styles */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 18px;
  color: var(--text);
  background-color: var(--background);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.contact-form label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-form button {
  width: 100%;
  padding: 18px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.2);
}

.contact-form button i {
  margin-right: 10px;
}

/* Error Message Styles */
.contact-form .error-message {
  color: var(--error);
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.contact-form .error input,
.contact-form .error textarea {
  border-color: var(--error);
}

.contact-form .error .error-message {
  display: block;
}

.error-card {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.error-card h1 {
    color: #ff4d4d;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-card p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-card .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .video-description pre {
    font-size: 13px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .conversions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-info {
    flex-direction: row;
  }

  .thumbnail-wrapper {
    flex: 0 0 40%;
  }
}

@media (min-width: 1025px) {
  .video-info {
    flex-direction: row;
  }

  .thumbnail-wrapper {
    flex: 0 0 30%;
  }
}

/* Modern focus styles */
/* Modern focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles */
@media print {
  body {
    background: none;
    color: black;
  }
  
  .no-print {
    display: none;
  }
}