/* Custom Toggle Switch */
.toggle-checkbox {
    appearance: none;
    width: 3rem;
    height: 1.5rem;
    background-color: #d1d5db;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-checkbox:checked {
    background-color: #ef4444;
}

.toggle-checkbox::before {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-checkbox:checked::before {
    transform: translateX(1.5rem);
}

/* View Button Styles */
.view-btn {
    transition: all 0.2s;
    border: 2px solid transparent;
}

.view-btn.active {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

.view-btn:not(.active) {
    background-color: #f3f4f6;
    color: #6b7280;
    border-color: #f3f4f6;
}

.view-btn:hover:not(.active) {
    background-color: #e5e7eb;
    border-color: #e5e7eb;
}

/* Drag and Drop Styles */
#upload-area.dragover {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* YouTube-like Video Card Styles */
.youtube-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    max-width: 320px; /* Standard YouTube desktop card width */
}

.youtube-card:hover {
    transform: translateY(-2px);
}

.youtube-thumbnail {
    position: relative;
    background-color: #f3f4f6;
    width: 100%;
    height: 180px; /* 16:9 aspect ratio for desktop (320x180) */
    aspect-ratio: 16/9;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.youtube-info {
    padding: 12px;
}

.youtube-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.youtube-meta {
    font-size: 12px;
    color: #606060;
    display: flex;
    align-items: center;
    gap: 8px;
}

.youtube-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6b7280;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: white;
    padding-top: 20px;
    padding-bottom: 20px;
}

.dark-mode .bg-white {
    background-color: #2a2a2a;
    color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Better dark mode colors */
.dark-mode .text-gray-900 {
    color: #ffffff;
}

.dark-mode .text-gray-700 {
    color: #e5e7eb;
}

.dark-mode .text-gray-600 {
    color: #d1d5db;
}

.dark-mode .text-gray-500 {
    color: #9ca3af;
}

.dark-mode .text-gray-900 {
    color: white;
}

.dark-mode .text-gray-600 {
    color: #a1a1aa;
}

.dark-mode .text-gray-500 {
    color: #71717a;
}

.dark-mode .border-gray-300 {
    border-color: #374151;
}

.dark-mode .youtube-meta {
    color: #a1a1aa;
}

/* Simple dark mode improvements */
.dark-mode nav {
    background-color: #2a2a2a;
    border-bottom: 1px solid #404040;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #333333;
    border-color: #505050;
    color: #ffffff;
    padding-top: 8px;
    padding-bottom: 8px;
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    border-color: #ef4444;
    outline: none;
}

/* Enhanced Dark Mode for Preview Cards */
.dark-mode .youtube-card {
    background-color: #2a2a2a !important;
    border: 1px solid #404040;
    padding-top: 12px;
    padding-bottom: 12px;
}

.dark-mode .youtube-title {
    color: white !important;
}

.dark-mode .youtube-meta {
    color: #a1a1aa !important;
}

.dark-mode .mobile-video-card {
    background-color: #2a2a2a !important;
    border: 1px solid #404040;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dark-mode .mobile-title {
    color: white !important;
}

.dark-mode .mobile-meta {
    color: #a1a1aa !important;
}

.dark-mode .search-result-card {
    background-color: #2a2a2a !important;
    border: 1px solid #404040;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dark-mode .search-title {
    color: white !important;
}

.dark-mode .search-meta {
    color: #a1a1aa !important;
}

.dark-mode .search-description {
    color: #71717a !important;
}

.dark-mode .tablet-video-card {
    background-color: #2a2a2a !important;
    border: 1px solid #404040;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dark-mode .tablet-title {
    color: white !important;
}

.dark-mode .tablet-meta {
    color: #a1a1aa !important;
}

.dark-mode .tablet-description {
    color: #71717a !important;
}

/* Dark Mode for Input Fields */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #2d2d2d !important;
    border-color: #374151 !important;
    color: white !important;
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: #71717a !important;
}

/* Dark Mode for Buttons */
.dark-mode .view-btn:not(.active) {
    background-color: #2d2d2d !important;
    color: #a1a1aa !important;
    border-color: #374151 !important;
}

.dark-mode .view-btn:hover:not(.active) {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
}

/* Dark Mode for Toggle Switches */
.dark-mode .toggle-checkbox {
    background-color: #374151 !important;
}

.dark-mode .toggle-checkbox:checked {
    background-color: #ef4444 !important;
}

/* Dark Mode for Upload Area */
.dark-mode #upload-area {
    background-color: #1f1f1f !important;
    border-color: #374151 !important;
}

.dark-mode #upload-area:hover {
    background-color: #2d2d2d !important;
    border-color: #ef4444 !important;
}

/* Dark Mode for Template Buttons */
.dark-mode #template-gaming,
.dark-mode #template-education,
.dark-mode #template-lifestyle,
.dark-mode #template-tech {
    background-color: #1f1f1f !important;
    border-color: #374151 !important;
    color: white !important;
}

.dark-mode #template-gaming:hover,
.dark-mode #template-education:hover,
.dark-mode #template-lifestyle:hover,
.dark-mode #template-tech:hover {
    background-color: #2d2d2d !important;
    border-color: #ef4444 !important;
}

/* Dark Mode for Main Container and Cards */
.dark-mode .bg-white.rounded-lg.shadow-md {
    background-color: #1f1f1f !important;
    border: 1px solid #374151 !important;
}

.dark-mode .bg-white.rounded-lg.shadow-md:hover {
    background-color: #2d2d2d !important;
    border-color: #4b5563 !important;
}

/* Dark Mode for Labels */
.dark-mode label {
    color: white !important;
}

/* Dark Mode for Section Headers */
.dark-mode h3,
.dark-mode h4 {
    color: white !important;
}

/* Dark Mode for A/B Comparison Areas */
.dark-mode #upload-area-a,
.dark-mode #upload-area-b {
    background-color: #1f1f1f !important;
    border-color: #374151 !important;
}

.dark-mode #upload-area-a:hover,
.dark-mode #upload-area-b:hover {
    background-color: #2d2d2d !important;
    border-color: #ef4444 !important;
}

/* Dark Mode for Body and Main Container */
.dark-mode body {
    background-color: #0f0f0f !important;
}

.dark-mode .bg-gray-50 {
    background-color: #0f0f0f !important;
}

/* Ensure entire viewport is dark */
.dark-mode html {
    background-color: #0f0f0f !important;
}

/* Force all page elements to inherit dark background */
.dark-mode * {
    background-color: inherit !important;
}

/* Specific overrides for main page structure */
.dark-mode .min-h-screen {
    background-color: #0f0f0f !important;
}

.dark-mode .mx-auto {
    background-color: #0f0f0f !important;
}

/* Ensure no light backgrounds anywhere */
.dark-mode .bg-white,
.dark-mode .bg-gray-50,
.dark-mode .bg-gray-100,
.dark-mode .bg-red-50,
.dark-mode .bg-orange-50,
.dark-mode .bg-blue-50,
.dark-mode .bg-green-50 {
    background-color: #1f1f1f !important;
}

/* Target viewport and ensure full dark coverage */
.dark-mode {
    background-color: #0f0f0f !important;
}

/* Force dark background on all possible elements */
.dark-mode body,
.dark-mode html,
.dark-mode #root,
.dark-mode .app,
.dark-mode .main,
.dark-mode .container,
.dark-mode .wrapper {
    background-color: #0f0f0f !important;
}

/* Ensure no white spaces on sides */
.dark-mode .px-4,
.dark-mode .px-6,
.dark-mode .px-8,
.dark-mode .py-4,
.dark-mode .py-6,
.dark-mode .py-8 {
    background-color: #0f0f0f !important;
}

/* Force dark mode on all elements */
.dark-mode * {
    background-color: inherit !important;
}

/* Specific dark mode overrides */
.dark-mode .container {
    background-color: #0f0f0f !important;
}

.dark-mode .max-w-6xl {
    background-color: #0f0f0f !important;
}

.dark-mode .px-4 {
    background-color: #0f0f0f !important;
}

.dark-mode .py-8 {
    background-color: #0f0f0f !important;
}

/* Dark Mode for Navigation */
.dark-mode nav {
    background-color: #1f1f1f !important;
    border-color: #374151 !important;
}

.dark-mode nav h1 {
    color: white !important;
}

.dark-mode nav a {
    color: #a1a1aa !important;
}

.dark-mode nav a:hover {
    color: #ef4444 !important;
}

/* Dark Mode for Header Sections */
.dark-mode header h2 {
    color: white !important;
}

.dark-mode header p {
    color: #a1a1aa !important;
}

/* Dark Mode for Hero Section */
.dark-mode .bg-gradient-to-br.from-red-50.to-orange-50 {
    background: linear-gradient(135deg, #0f0f0f 0%, #0f0f0f 100%) !important;
}

.dark-mode .bg-white.rounded-lg.shadow-lg {
    background-color: #2d2d2d !important;
    border: 1px solid #374151 !important;
}

.dark-mode .bg-blue-50 {
    background-color: #1e3a8a !important;
}

.dark-mode .bg-green-50 {
    background-color: #166534 !important;
}

/* Dark Mode for Trust Badges Section */
.dark-mode .bg-white {
    background-color: #0f0f0f !important;
}

/* Prose Section Styling */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
    color: #dc2626;
}

/* Dark Mode for Prose Section */
.dark-mode .prose {
    color: #d1d5db;
}

.dark-mode .prose h2,
.dark-mode .prose h3 {
    color: #f9fafb;
}

.dark-mode .prose strong {
    color: #f87171;
}

/* Dark Mode for Text Colors in Hero Section */
.dark-mode .text-gray-900 {
    color: white !important;
}

.dark-mode .text-gray-700 {
    color: #d1d5db !important;
}

.dark-mode .text-gray-600 {
    color: #a1a1aa !important;
}

.dark-mode .text-blue-800 {
    color: #93c5fd !important;
}

.dark-mode .text-green-800 {
    color: #86efac !important;
}

/* Dark Mode for How It Works Section */
.dark-mode .bg-gray-100 {
    background-color: #2d2d2d !important;
}

/* Dark Mode for FAQ Section */
.dark-mode .bg-gray-50.rounded-lg {
    background-color: #2d2d2d !important;
    border: 1px solid #374151 !important;
}

/* Dark Mode for Footer */
.dark-mode footer {
    background-color: #1f1f1f !important;
    border-top: 1px solid #374151 !important;
}

/* Dark Mode for Progress Indicator */
.dark-mode .bg-gray-200 {
    background-color: #374151 !important;
}

.dark-mode .bg-red-500 {
    background-color: #ef4444 !important;
}

/* Dark Mode for Step Containers */
.dark-mode .step-container {
    background-color: #2d2d2d !important;
    border: 1px solid #374151 !important;
}

/* Dark Mode for Progress Steps */
.dark-mode .bg-gray-100.rounded-full {
    background-color: #374151 !important;
}

.dark-mode .bg-red-500.rounded-full {
    background-color: #ef4444 !important;
}

.dark-mode .text-gray-500 {
    color: #71717a !important;
}

.dark-mode .text-red-500 {
    color: #ef4444 !important;
}

/* Dark Mode for Section Headers */
.dark-mode .text-gray-800 {
    color: white !important;
}

/* Dark Mode for Cards and Containers */
.dark-mode .bg-white.rounded-lg {
    background-color: #2d2d2d !important;
    border: 1px solid #374151 !important;
}

.dark-mode .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Dark Mode for Borders */
.dark-mode .border-gray-200 {
    border-color: #374151 !important;
}

/* Dark Mode for Hover States */
.dark-mode .hover\:bg-gray-50:hover {
    background-color: #2d2d2d !important;
}

.dark-mode .hover\:text-gray-900:hover {
    color: white !important;
}

/* Mobile Preview Styles */
.mobile-video-card {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    max-width: 100%;
}

.mobile-thumbnail {
    width: 168px; /* Standard mobile thumbnail width */
    height: 94px; /* 16:9 aspect ratio for mobile (168x94) */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    aspect-ratio: 16/9;
}

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

.mobile-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-meta {
    font-size: 11px;
    color: #606060;
}

/* Shorts Preview Styles */
.shorts-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.shorts-thumbnail {
    width: 100%;
    height: 600px; /* 9:16 aspect ratio for Shorts */
    position: relative;
    background-color: #f3f4f6;
    aspect-ratio: 9/16;
    max-width: 360px; /* Standard Shorts width */
    margin: 0 auto;
}

.shorts-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shorts-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}

.shorts-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.shorts-meta {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shorts-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

/* Search Result Preview Styles */
.search-result-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
}

.search-thumbnail {
    width: 168px; /* Standard search result thumbnail width */
    height: 94px; /* 16:9 aspect ratio for search results */
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 16/9;
}

.search-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.search-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #030303;
}

.search-meta {
    font-size: 12px;
    color: #606060;
    margin-bottom: 4px;
}

.search-description {
    font-size: 12px;
    color: #606060;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet Preview Styles */
.tablet-video-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
}

.tablet-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tablet-thumbnail {
    width: 240px; /* Standard tablet thumbnail width */
    height: 135px; /* 16:9 aspect ratio for tablet (240x135) */
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background-color: #f3f4f6;
    aspect-ratio: 16/9;
}

.tablet-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tablet-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tablet-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #030303;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tablet-meta {
    font-size: 14px;
    color: #606060;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.tablet-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

.tablet-description {
    font-size: 13px;
    color: #606060;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Export Button Styles */
.export-btn {
    transition: all 0.2s;
    font-weight: 500;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading States */
.export-loading {
    opacity: 0.7;
    pointer-events: none;
}

.export-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-thumbnail {
        width: 120px; /* Smaller mobile thumbnail */
        height: 68px; /* Maintain 16:9 aspect ratio */
        aspect-ratio: 16/9;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Character Count Warning */
.char-warning {
    color: #ef4444;
    font-weight: 500;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* How it Works Screenshots */
.how-it-works-screenshot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-screenshot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.screenshot-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
}

.upload-area-demo {
    background: linear-gradient(45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(-45deg, #f1f5f9 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f1f5f9 75%), 
                linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    backdrop-filter: blur(2px);
}

.title-input-demo {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    backdrop-filter: blur(1px);
}

.preview-demo {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(1px);
}

/* Enhanced background patterns for steps */
.step-1-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.step-2-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite reverse;
}

.step-3-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Step container enhancements */
.step-container {
    position: relative;
    overflow: hidden;
}

.step-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* Image optimization feedback */
.optimization-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Visual Hierarchy and Animations */

/* Preview container animations */
.preview-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.preview-container.active {
    opacity: 1;
    transform: translateY(0);
}

.preview-container.hidden {
    display: none;
}

/* Fade in animation for previews */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced button hover effects */
.view-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.view-btn:hover::before {
    left: 100%;
}

/* Enhanced upload area */
#upload-area {
    transition: all 0.3s ease;
    position: relative;
}

#upload-area:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

/* Template button enhancements */
#template-gaming, #template-education, #template-lifestyle, #template-tech {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#template-gaming:hover, #template-education:hover, #template-lifestyle:hover, #template-tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced export buttons */
.export-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.export-btn:hover::before {
    left: 100%;
}

/* Loading state enhancements */
.loading-spinner {
    animation: spin 1s linear infinite;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #ef4444;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

/* Success state animations */
.success-pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Enhanced focus states */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* Smooth transitions for all interactive elements */
button, a, input, textarea, select {
    transition: all 0.2s ease;
}

/* Enhanced card hover effects */
.bg-white.rounded-lg.shadow-md {
    transition: all 0.3s ease;
}

.bg-white.rounded-lg.shadow-md:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
} 