/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {font-family:"Inter",Arial; line-height: 1.6; color: #1f2937; background: #f9fafb; }
.dark body { background: #0f172a; color: #e2e8f0; }
.container { max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem; }
.site-header .container { padding: 0; max-width: 100%; }

/* Header and Navigation */
header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar { padding: 1rem 0; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: #2563eb; text-decoration: none; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a { text-decoration: none; color: #666; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: #2563eb; }

/* Hero Section */
.hero { text-align: center; padding: 3rem 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 12px; margin-bottom: 3rem; }
.hero h1 { font-family:"Gantari",Arial;font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; opacity: 0.9; }

/* Tool Header */
.tool-header { text-align: center; margin-bottom: 2rem; }
.tool-header h1 { font-size: 2rem; color: #1f2937; margin-bottom: 0.5rem; }fo
.tool-header p { color: #6b7280; font-size: 1.1rem; }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.tool-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.tool-icon { font-size: 3rem; margin-bottom: 1rem; }
.tool-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #1f2937; }
.tool-card p { color: #6b7280; margin-bottom: 1.5rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: #7c3aed; color: white; }
.btn-primary:hover { background: #6d28d9; transform: translateY(-1px); }
.dark .btn-primary { background: #8b5cf6; }
.dark .btn-primary:hover { background: #7c3aed; }
.btn-secondary { background: #6b7280; color: white; }
.btn-secondary:hover { background: #4b5563; }

/* Upload Area */
.upload-area { font-family:"Gantari",Arial;background: white; border: 3px dashed #cbd5e1; border-radius: 12px; padding: 3rem; text-align: center; cursor: pointer; transition: all 0.3s; margin-bottom: 2rem; }
.upload-area:hover, .upload-area.drag-over { border-color: #2563eb; background: #eff6ff; }
.upload-icon { font-size: 4rem; margin-bottom: 1rem; }
.upload-area h3 { font-family:"Gantari",Arial;color: #0f172a; margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 600; }
.upload-area p { color: #64748b; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.dark .upload-area h3 { color: #f1f5f9; }
.dark .upload-area p { color: #94a3b8; }

/* Controls */
.quality-control, .format-control, .resize-controls, .border-controls { background: white; padding: 1.5rem; border-radius: 12px; margin-bottom: 2rem; }
.quality-control label, .format-control label, .resize-controls label, .border-controls label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #1f2937; }
input[type="range"] { width: 100%; margin: 0.5rem 0; }
input[type="number"], input[type="color"], select { padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; }
.control-group { margin-bottom: 1rem; }
.control-group label { display: inline-block; margin-right: 1rem; }
#pixelControls label, #percentageControls label { display: block; margin-bottom: 0.5rem; }
#pixelControls input { margin-bottom: 1rem; }

/* Results */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.result-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.result-card.loading { padding: 2rem; text-align: center; color: #6b7280; }
.result-card.error { padding: 2rem; background: #fee2e2; color: #991b1b; }
.result-card.success { border: 2px solid #10b981; }
.result-header { padding: 1rem; background: #f9fafb; display: flex; justify-content: space-between; align-items: center; }
.result-header h3 { font-size: 0.9rem; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.badge { background: #dbeafe; color: #1e40af; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.8rem; font-weight: 600; margin-left: 0.5rem; }
.badge.positive { background: #dcfce7; color: #166534; }
.result-preview { padding: 1rem; background: #f9fafb; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.result-preview img { max-width: 100%; max-height: 300px; border-radius: 6px; }
.result-stats { padding: 1rem; border-top: 1px solid #e5e7eb; }
.result-stats p { color: #6b7280; font-size: 0.9rem; margin-bottom: 0.25rem; }
.result-actions { padding: 1rem; border-top: 1px solid #e5e7eb; display: flex; gap: 0.5rem; justify-content: center; }

/* Features Section */
.features { margin: 3rem 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: #1f2937; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.feature h3 { color: #1f2937; margin-bottom: 0.5rem; }
.feature p { color: #6b7280; }

/* Contact Form */
.contact-form { background: white; padding: 2rem; border-radius: 12px; max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #1f2937; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.form-group textarea { resize: vertical; min-height: 150px; }
.alert { padding: 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Admin Dashboard */
.admin-login { background: white; padding: 2rem; border-radius: 12px; max-width: 400px; margin: 3rem auto; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.admin-dashboard { background: white; padding: 2rem; border-radius: 12px; margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #f9fafb; padding: 1.5rem; border-radius: 8px; border-left: 4px solid #2563eb; }
.stat-card h3 { color: #6b7280; font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-card p { color: #1f2937; font-size: 1.8rem; font-weight: bold; }

/* Footer */
footer { background: #1f2937; color: white; padding: 0rem 0; margin-top: 4rem; text-align: center; }
footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Responsive Design */
@media (max-width: 768px) {
.nav-menu { gap: 1rem; font-size: 0.9rem; }
.hero h1 { font-size: 1.8rem; }
.tools-grid { grid-template-columns: 1fr; }
.results { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
.nav-menu { flex-wrap: wrap; gap: 0.5rem; }
.upload-area { padding: 2rem 1rem; }
}

/* Modern Hero Section */
.hero-modern { background: linear-gradient(to bottom right, #f9fafb, #ffffff); padding: 3rem 0; }
.dark .hero-modern { background: linear-gradient(to bottom right, #1f2937, #111827); }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: center; }
.hero-content h1 { font-family:"Gantari",Arial;font-size: 2.5rem; font-weight: bold; color: #111827; margin-bottom: 1rem; line-height: 1.2; }
.dark .hero-content h1 { color: #f9fafb; }
.hero-description { font-size: 1.125rem; color: #4b5563; line-height: 1.75; margin-bottom: 1.5rem; }
.dark .hero-description { color: #d1d5db; }
.hero-link { font-weight: bold; color: #111827; text-decoration: none; }
.dark .hero-link { color: #f9fafb; }
.hero-link:hover { color: #2563eb; }
.dark .hero-link:hover { color: #60a5fa; }
.hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge-green, .badge-blue, .badge-purple { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; border: 1px solid; }
.badge-green { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.dark .badge-green { background: #064e3b; color: #6ee7b7; border-color: #065f46; }
.badge-blue { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.dark .badge-blue { background: #1e3a8a; color: #93c5fd; border-color: #1e40af; }
.badge-purple { background: #e9d5ff; color: #6b21a8; border-color: #c084fc; }
.dark .badge-purple { background: #581c87; color: #d8b4fe; border-color: #6b21a8; }
.hero-image { display: flex; justify-content: flex-end; }
.hero-image img { width: 100%; max-width: 224px; height: auto; object-fit: contain; }

/* Modern Tools Section */
.tools-section { padding: 2rem 0 4rem; }
.container-narrow { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.tools-grid-modern { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }
.tool-card-modern { background: white; border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); overflow: hidden; transition: all 0.3s ease; }
.dark .tool-card-modern { background: #1f2937; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2); }
.tool-card-modern:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.dark .tool-card-modern:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3); }
.tool-card-content { padding: 1.5rem; }
.tool-header-flex { display: flex; gap: 1rem; }
.tool-icon-modern { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s ease; }
.tool-card-modern:hover .tool-icon-modern { transform: scale(1.1); }
.icon-indigo { background: #eef2ff; color: #4f46e5; }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-orange { background: #fed7aa; color: #ea580c; }
.tool-text { flex: 1; min-width: 0; }
.tool-text h3 { font-family:"Gantari",Arial;font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.dark .tool-text h3 { color: #f9fafb; }
.tool-text p { font-family:"Inter",Arial;font-size: 0.875rem; color: #4b5563; line-height: 1.5; margin-bottom: 1rem; }
.dark .tool-text p { color: #d1d5db; }
.btn-tool {font-family:"Gantari",Arial; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #4b5563; color: white; border-radius: 0.5rem; text-decoration: none; font-weight: 500; font-size: 0.875rem; transition: background 0.3s ease; }
.btn-tool:hover { background: #374151; }
.arrow-icon { width: 1rem; height: 1rem; }

/* Responsive Design for Modern Layout */
@media (max-width: 1024px) {
.tools-grid-modern { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
.hero-grid { grid-template-columns: 1fr; }
.hero-image { justify-content: center; order: -1; }
.hero-content h1 { font-size: 2rem; }
.hero-description { font-size: 1rem; }
}

/* Upload Icon SVG Styling */
.upload-icon-svg { width: 80px; height: 80px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: #f3f4f6; border-radius: 50%; }
.upload-icon-svg svg { width: 48px; height: 48px; }
.text-blue-500 { color: #3b82f6; }
.text-purple-500 { color: #a855f7; }
.text-green-500 { color: #22c55e; }
.text-orange-500 { color: #f97316; }
.text-indigo-500 { color: #6366f1; }

/* Modern Footer Styling */
.footer-modern { background-color: #111827; color: white; margin-top: auto; }
.footer-content { text-align: center; padding: 0.5rem 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; font-size: 0.8125rem; margin-bottom: 0.5rem; }
.footer-links a { color: #9ca3af; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: white; }
.footer-links .separator { color: #4b5563; }
.footer-info { color: #9ca3af; font-size: 0.6875rem; }
.footer-info p { margin: 0.125rem 0; }

/* Mobile Footer Responsive */
@media (max-width: 640px) {
.footer-links { font-size: 0.75rem; gap: 0.25rem; }
.footer-info { font-size: 0.65rem; }
}

/* Header and Navigation Styles */
.site-header { background: white; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 1000; }
.dark .site-header { background: #1e293b; border-bottom-color: #334155; }
.main-nav { position: relative; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 1.5rem; max-width: 1280px; margin: 0 auto; }
.logo { font-size: 1.25rem; font-weight: 700; color: #0f172a; text-decoration: none;text-transform:uppercase; }
.dark .logo { color: #f8fafc; }
.desktop-nav { display: flex; align-items: center; gap: 1rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; align-items: center; }
.nav-link { font-family:"Gantari",Arial;color: #64748b; text-decoration: none; font-weight: 500; transition: color 0.2s; background: none; border: none; cursor: pointer; font-size: 0.9375rem; display: flex; align-items: center; gap: 0.25rem; }
.dark .nav-link { color: #cbd5e1; }
.nav-link:hover { color: #0f172a; }
.dark .nav-link:hover { color: #f8fafc; }
.nav-link.active { color: #0f172a; position: relative; }
.dark .nav-link.active { color: #f8fafc; }
.nav-link.active:after { content: ''; position: absolute; bottom: -1rem; left: 0; right: 0; height: 2px; background: #7c3aed; }

/* Dropdown Styles */
.dropdown { position: relative; }
.dropdown-toggle { padding: 0.5rem; }
.chevron { transition: transform 0.2s; }
.chevron.rotate { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 0; margin-top: 0.25rem; width: 14rem; background: white; border: 1px solid #e5e7eb; border-radius: 0.375rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); z-index: 50; display: none; animation: fadeIn 0.2s; }
.dark .dropdown-menu { background: #1f2937; border-color: #374151; }
.dropdown-menu.show { display: block; }
.dropdown-item { font-family:"Gantari",Arial; display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: #374151; text-decoration: none; transition: background 0.2s; }
.dark .dropdown-item { color: #d1d5db; }
.dropdown-item:hover { background: #f3f4f6; }
.dark .dropdown-item:hover { background: #374151; }

/* Theme Toggle */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; color: #4b5563; transition: color 0.3s; }
.dark .theme-toggle { color: #d1d5db; }
.theme-toggle:hover { color: #111827; }
.dark .theme-toggle:hover { color: white; }

/* Mobile Navigation */
.mobile-nav-buttons { display: none; gap: 0.5rem; }
.mobile-menu-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; color: #4b5563; }
.dark .mobile-menu-toggle { color: #d1d5db; }
.mobile-menu { border-top: 1px solid #e5e7eb; }
.dark .mobile-menu { border-top-color: #374151; }
.mobile-menu-content { padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link { display: block; padding: 0.75rem; color: #374151; text-decoration: none; font-weight: 500; border-radius: 0.375rem; transition: background 0.2s; }
.dark .mobile-nav-link { color: #d1d5db; }
.mobile-nav-link:hover { background: #f3f4f6; }
.dark .mobile-nav-link:hover { background: #374151; }
.mobile-tools-section { padding: 0.75rem; }
.mobile-section-title { font-weight: 500; color: #374151; margin-bottom: 0.5rem; }
.dark .mobile-section-title { color: #d1d5db; }
.mobile-tools-list { margin-left: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-tools-list .mobile-nav-link { font-size: 0.875rem; padding: 0.5rem 0.75rem; }

/* Hide/Show Utilities */
.hidden { display: none !important; }

/* Dark Mode */
:root { --bg-color: #f9fafb; --text-color: #111827; --card-bg: white; }
.dark { --bg-color: #111827; --text-color: #f9fafb; --card-bg: #1f2937; }
body { background: var(--bg-color); color: var(--text-color); transition: background 0.3s, color 0.3s; }
.dark body { background: #111827; color: #f9fafb; }

/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
.desktop-nav { display: none; }
.mobile-nav-buttons { display: flex; }
}

/* Contact Page Styles */
.contact-page { flex: 1; padding: 2rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.contact-info h1 { font-size: 2.5rem; font-weight: bold; color: #111827; margin-bottom: 1.5rem; }
.dark .contact-info h1 { color: white; }
.contact-description { font-size: 1.125rem; color: #4b5563; line-height: 1.75; }
.dark .contact-description { color: #d1d5db; }
.text-link { font-weight: 500; color: #2563eb; text-decoration: none; }
.dark .text-link { color: #60a5fa; }
.text-link:hover { text-decoration: underline; }
.contact-card { background: white; border-radius: 0.5rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); overflow: hidden; }
.dark .contact-card { background: #1f2937; }
.card-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.dark .card-header { border-bottom-color: #374151; }
.card-header h2 { font-size: 1.5rem; font-weight: bold; color: #111827; margin-bottom: 0.5rem; }
.dark .card-header h2 { color: white; }
.card-header p { font-family:"Inter",Arial;color: #4b5563; font-size: 0.875rem; }
.dark .card-header p { color: #d1d5db; }
.card-content { padding: 1.5rem; }
.email-section { text-align: center; padding: 2rem 0; }
.email-box { background: #f3f4f6; border-radius: 0.5rem; padding: 1rem; display: inline-block; margin-bottom: 1.5rem; }
.dark .email-box { background: #374151; }
.email-link { font-size: 1.25rem; font-family: monospace; color: #2563eb; text-decoration: none; }
.dark .email-link { color: #60a5fa; }
.email-link:hover { text-decoration: underline; }
.response-time { font-size: 0.875rem; color: #6b7280; }
.dark .response-time { color: #9ca3af; }

/* Contact Page Responsive */
@media (max-width: 1024px) {
.contact-grid { grid-template-columns: 1fr; }
.contact-info h1 { font-size: 2rem; }
}

/* 404 Error Page Styles */
.error-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 4rem 0; text-align: center; }
.error-content { max-width: 600px; margin: 0 auto; }
.error-code { font-size: 8rem; font-weight: bold; color: #00b894; line-height: 1; margin-bottom: 1rem; }
.dark .error-code { color: #00d9a5; }
.error-page h1 { font-size: 2.5rem; font-weight: bold; color: #111827; margin-bottom: 1rem; }
.dark .error-page h1 { color: white; }
.error-description { font-size: 1.125rem; color: #4b5563; margin-bottom: 2rem; line-height: 1.75; }
.dark .error-description { color: #d1d5db; }
.error-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; border-radius: 0.375rem; text-decoration: none; font-weight: 500; transition: all 0.3s; display: inline-block; }
.btn-primary { background: #00b894; color: white; }
.btn-primary:hover { background: #00a085; }
.btn-secondary { background: #e5e7eb; color: #374151; }
.dark .btn-secondary { background: #374151; color: #d1d5db; }
.btn-secondary:hover { background: #d1d5db; }
.dark .btn-secondary:hover { background: #4b5563; }
.error-suggestions { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }
.dark .error-suggestions { border-top-color: #374151; }
.error-suggestions h2 { font-size: 1.25rem; color: #111827; margin-bottom: 1rem; }
.dark .error-suggestions h2 { color: white; }
.tool-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tool-links li a {display:inline-block; padding:0.5rem 1rem; background:#f3f4f6; color:#374151; border-radius:0.25rem; font-size:0.875rem; transition:background 0.3s;}
.dark .tool-links li a {background:#374151; color:#d1d5db;}
.tool-links li a:hover {background:#e5e7eb;}
.dark .tool-links li a:hover {background:#4b5563;}

@media (max-width: 768px) {
.error-code {font-size:5rem;}
.error-page h1 {font-size:2rem;}
.error-actions {flex-direction:column;}
.btn-primary, .btn-secondary {width:100%;}
}
/* ================================
   TOOL HERO SECTIONS - TWO COLUMN LAYOUT
   ================================ */

.tool-page-layout {display:grid; grid-template-columns:1fr 1fr; gap:4rem; margin-bottom:3rem; align-items:start; margin-top:2rem;}
.tool-hero-section {padding:0;}
.tool-hero-section h1 {font-family:"Gantari",Arial;font-size:3rem; font-weight:700; color:#0f172a; margin-bottom:1rem; line-height:1.1; letter-spacing:-0.02em;}
.dark .tool-hero-section h1 {color:#f1f5f9;}
.tool-subtitle {font-size:1.5rem; font-weight:600; color:#1e293b; margin-bottom:1.25rem; line-height:1.3;}
.dark .tool-subtitle {color:#cbd5e1;}
.tool-description {font-family:"Inter",Arial;font-size:1.0625rem; color:#475569; line-height:1.7; margin-bottom:1.5rem;}
.dark .tool-description {color:#94a3b8;}
.feature-badges {display:flex; gap:0.75rem; margin-bottom:1.5rem; flex-wrap:wrap;}
.feature-list {list-style:none; padding:0; margin:0; margin-top:1rem;}
.feature-list li {font-size:1rem; color:#059669; padding-left:1.75rem; margin-bottom:0.75rem; position:relative; font-weight:500;}
.feature-list li:before {content:"✓"; position:absolute; left:0; color:#059669; font-weight:bold; font-size:1.125rem;}
.dark .feature-list li {color:#10b981;}
.dark .feature-list li:before {color:#10b981;}
.border-controls, .resize-controls, .quality-control, .format-control {background:#f9fafb; border-radius:0.75rem; padding:2rem; margin-bottom:2rem;}
.dark .border-controls, .dark .resize-controls, .dark .quality-control, .dark .format-control {background:#1e293b;}
.control-row {margin-bottom:1.5rem;}
.control-row label {display:block; font-weight:600; color:#374151; margin-bottom:0.5rem;}
.dark .control-row label {color:#cbd5e1;}
.control-row select, .control-row input[type="color"], .control-row input[type="range"], .control-row input[type="number"] {width:100%; padding:0.5rem; border:1px solid #d1d5db; border-radius:0.375rem; background:white;}
.dark .control-row select, .dark .control-row input[type="color"], .dark .control-row input[type="number"] {background:#0f172a; border-color:#334155; color:#f1f5f9;}
.color-picker-group {display:flex; flex-direction:column; gap:1rem;}
.color-presets {display:flex; gap:0.5rem; flex-wrap:wrap;}
.color-preset {width:2.5rem; height:2.5rem; border-radius:0.375rem; border:2px solid transparent; cursor:pointer; transition:transform 0.2s;}
.color-preset:hover {transform:scale(1.1); border-color:#00b894;}
.control-actions {display:flex; gap:1rem; margin-top:1.5rem;}
.control-hint {font-size:0.875rem; color:#6b7280; margin-top:0.5rem;}
.dark .control-hint {color:#94a3b8;}

/* Responsive Tool Hero */
@media (max-width: 992px) {
.tool-page-layout {grid-template-columns:1fr; gap:2rem;}
.tool-hero-content h1 {font-size:2rem;}
.tool-subtitle {font-size:1.125rem;}
.tool-description {font-size:0.95rem;}
.control-actions {flex-direction:column;}
.control-actions .btn {width:100%;}
}

/* ================================
   TOOL UPLOAD CARD CONTAINER
   ================================ */
.tool-upload-section {display:flex; flex-direction:column; gap:0;}
.tool-upload-card {background:white; border:1px solid #e5e7eb; border-radius:16px; padding:2.5rem; box-shadow:0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}
.dark .tool-upload-card {background:#1e293b; border-color:#334155;}
.tool-upload-card .upload-area {margin-bottom:0; background:transparent; border:2px dashed #cbd5e1; border-radius:12px; padding:3rem 2rem; transition:all 0.2s ease;}
.dark .tool-upload-card .upload-area {background:transparent; border-color:#475569;}
.tool-upload-card .upload-area:hover {border-color:#00b894; background:#f0fdf4;}
.dark .tool-upload-card .upload-area:hover {background:rgba(5, 150, 105, 0.05); border-color:#00b894;}
.upload-settings {margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid #e5e7eb;}
.dark .upload-settings {border-top-color:#334155;}
.upload-settings h4 {font-size:0.875rem; font-weight:600; color:#374151; margin-bottom:1rem; display:flex; align-items:center; gap:0.5rem;}
.dark .upload-settings h4 {color:#cbd5e1;}
.setting-row {display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem;}
.setting-row label {font-size:0.875rem; color:#6b7280; font-weight:500;}
.dark .setting-row label {color:#94a3b8;}
.setting-row .quality-slider {flex:1; max-width:200px; margin-left:1rem;}
.quality-value {font-weight:600; color:#00b894;}
.why-section {background:#f0f9ff; border-radius:12px; padding:3rem 2rem; margin-top:3rem; margin-bottom:3rem;}
.dark .why-section {background:#1e293b;}
.why-section h2 {text-align:center; font-size:2rem; font-weight:bold; color:#111827; margin-bottom:2rem;}
.dark .why-section h2 {color:#f1f5f9;}
.why-grid {display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.5rem;}
.why-card {background:white; border-radius:8px; padding:1.5rem; box-shadow:0 1px 3px rgba(0, 0, 0, 0.1);}
.dark .why-card {background:#0f172a;}
.why-card h3 {font-size:1.125rem; font-weight:600; color:#111827; margin-bottom:0.5rem; display:flex; align-items:center; gap:0.5rem;}
.dark .why-card h3 {color:#f1f5f9;}
.why-card p {font-size:0.95rem; color:#6b7280; line-height:1.6;}
.dark .why-card p {color:#94a3b8;}
.why-icon {display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; font-size:0.875rem;}

.icon-green { background: #d1fae5; color: #065f46; }
.icon-blue { background: #dbeafe; color: #1e40af; }
.icon-purple { background: #e9d5ff; color: #6b21a8; }
.icon-orange { background: #fed7aa; color: #9a3412; }
.icon-pink { background: #fce7f3; color: #9f1239; }
.icon-indigo { background: #e0e7ff; color: #3730a3; }

.dark .icon-green { background: #064e3b; color: #6ee7b7; }
.dark .icon-blue { background: #1e3a8a; color: #93c5fd; }
.dark .icon-purple { background: #581c87; color: #d8b4fe; }
.dark .icon-orange { background: #7c2d12; color: #fdba74; }
.dark .icon-pink { background: #831843; color: #f9a8d4; }
.dark .icon-indigo { background: #312e81; color: #a5b4fc; }

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}
