/* Modern CSS Variables with Enhanced Color Palette */
:root {
    /* Primary Colors - Updated for better accessibility */
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary-color: #4cc9f0;
    --accent-color: #ff6b6b;

    /* Layout & Background */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --dark-color: #0f172a;
    --light-color: #f9fafb;

    /* Grays - More nuanced palette */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* RGB Variants for Opacity */
    --primary-color-rgb: 67, 97, 238;
    --primary-dark-rgb: 58, 12, 163;
    --secondary-color-rgb: 76, 201, 240;
    --accent-color-rgb: 255, 107, 107;
    --dark-color-rgb: 15, 23, 42;
    --light-color-rgb: 249, 250, 251;

    /* Typography - Updated to modern fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(15, 23, 42, 0.06);

    /* Borders */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.5rem;
    --border-radius-md: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;

    /* Transitions - More refined timing */
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing - Uses 4px increments */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Theme Variables */
.dark-theme {
    /* Primary Colors - Adjusted for dark theme */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #4cc9f0;
    --accent-color: #ff6b6b;

    /* Layout & Background */
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --dark-color: #020617;
    --light-color: #f8fafc;

    /* Grays - Inverted for dark theme */
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;

    /* Semantic Colors - Brightened for dark theme */
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --info-color: #60a5fa;

    /* RGB Variants for Opacity */
    --primary-color-rgb: 99, 102, 241;
    --primary-dark-rgb: 79, 70, 229;
    --secondary-color-rgb: 76, 201, 240;
    --accent-color-rgb: 255, 107, 107;
    --dark-color-rgb: 2, 6, 23;
    --light-color-rgb: 248, 250, 252;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--bg-color);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition), color var(--transition);
    position: relative;
    overflow-x: hidden;
    /* Add smooth scrolling for iOS */
    -webkit-overflow-scrolling: touch;
}

header {
  background-color: var(--secondary-color);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

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

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-secondary {
  background-color: var(--accent-color);
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin: 0;
  position: relative;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

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

.nav-link .fas {
  margin-left: 5px;
  font-size: 12px;
}

.submenu {
  display: none;
  position: static;
  top: 100%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 200px;
  z-index: 1;
  padding-left: 15px;
}

.nav-item:hover .submenu {
  display: block;
}

.submenu li {
  list-style: none;
}

.submenu a {
  display: block;
  padding: 5px 20px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.submenu a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.subheader {
  background-color: var(--primary-color);
  padding: 10px 0;
  color: #fff;
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  font-size: 14px;
}

.breadcrumb li+li::before {
  content: ">";
  padding: 0 10px;
  color: #fff;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  position: relative;
  transition: background-color 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transition: all 0.3s;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-menu.active {
  left: 0;
}

.nav-item.active .submenu {
  display: block;
}

.search-container {
  order: 0;
  width: auto;
  padding: 10px 15px;
}

.logo {
  order: -1;
}

#search {
  width: auto;
  display: flex;
  align-items: center;
  position: relative;
}

#ssep_inp {
  width: 200px;
  padding: 10px 15px 10px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tool-category {
  margin: 0;
  padding: 20px;
  margin-bottom: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-header {
  flex-direction: column;
  text-align: center;
  gap: 15px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.tool-link {
  flex-direction: column;
  text-align: center;
  gap: 12px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.pain-points {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 15px 0;
}

footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin-bottom: 20px;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 5px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.social-icons a {
  color: #fff;
  margin-right: 10px;
  font-size: 24px;
}

.main-content {
  padding: 40px 0;
}

#editor {
  width: 100%;
  height: 300px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#lint-results {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.error {
  color: #d32f2f;
}

.warning {
  color: #ffa000;
}

main {
  padding: 40px 0;
}
/* Improved focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 0.25rem;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.2);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
    /* Removes tap highlight color on mobile */
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
    /* Removes tap highlight color on mobile */
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
    color: var(--gray-100);
}

h1 {
    font-size: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

p {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

/* Header Styles */
.app-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.app-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.dark-theme .app-logo {
    color: var(--gray-100);
}

@media (max-width: 768px) {
    .app-logo {
        font-size: 1.125rem;
    }
    
    .app-header {
        padding: 0.5rem 0;
    }
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
    padding-top: 1rem; /* Reduced since we now have header */
}

/* Tool Navigation - Enhanced with smooth transitions */
.tools-nav {
    display: flex;
    overflow-x: auto;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    scrollbar-width: none; /* Firefox */
    /* Improved smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.tools-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tool-tab {
    flex: 1;
    min-width: 90px;
    padding: 1rem 0.5rem;
    background: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Animated underline effect for active tab */
.tool-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: var(--border-radius-full) var(--border-radius-full) 0 0;
}

.tool-tab i {
    font-size: 1.25rem;
    transition: transform var(--transition);
}

.tool-tab.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.tool-tab.active::after {
    width: 70%;
}

.tool-tab.active i {
    transform: scale(1.2);
}

.tool-tab:hover:not(.active) {
    color: var(--primary-light);
    background-color: var(--gray-100);
}

.tool-tab:hover::after {
    width: 40%;
}

/* Tool Container - Enhanced with smoother animations */
.tool-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: none;
    animation: slideUp 0.4s var(--transition-bounce);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-container.active {
    display: block;
}

/* Enhanced tool header with gradient text */
.tool-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.tool-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background-image: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.dark-theme .tool-header h2 {
    background-image: linear-gradient(90deg, var(--primary-light), var(--accent-color));
}

.tool-header p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* Upload Container - Enhanced with better feedback */
.upload-container {
    margin-bottom: 1.5rem;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    text-align: center;
    transition: all var(--transition);
    background-color: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Enhanced drop zone effects */
.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
    transform: scale(1.01);
}

.upload-area.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 70%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: var(--border-radius-full);
    margin-bottom: 1rem;
    transition: transform var(--transition);
}

.upload-area:hover .upload-icon {
    transform: translateY(-5px);
}

.upload-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.upload-text p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Enhanced upload button */
.upload-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.upload-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Add ripple effect on button click */
.upload-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.upload-btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

.upload-btn input {
    display: none;
}

/* Enhanced batch list with better animation */
.batch-list {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    justify-content: center;
}

.batch-item {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s var(--transition-bounce);
    cursor: pointer;
    position: relative;
    animation: fadeInUp 0.4s var(--transition-bounce);
    height: 100%;
}

.batch-item.removing {
    animation: fadeOutDown 0.3s ease forwards;
}

.batch-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.batch-item.active {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.batch-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform var(--transition);
}

.batch-item:hover img {
    transform: scale(1.05);
}

.batch-item-info {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.batch-item-name {
    margin: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-800);
}

.dark-theme .batch-item-name {
    color: var(--gray-200);
}

.batch-item-details {
    margin: 0;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.batch-remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: var(--border-radius-full);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
    border: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.batch-item:hover .batch-remove-btn {
    opacity: 1;
    transform: scale(1);
}

.batch-remove-btn:hover {
    background-color: var(--error-color);
    transform: scale(1.1) !important;
}

/* URL Input - Enhanced styling */
.url-input {
    margin-top: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-full);
    font-family: inherit;
    transition: var(--transition-fast);
}

.input-with-button input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    outline: none;
}

.dark-theme .input-with-button input {
    background-color: var(--gray-800);
    color: var(--gray-200);
    border-color: var(--gray-600);
}

/* Enhanced secondary button */
.secondary-btn {
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.secondary-btn:hover {
    background-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:active {
    transform: translateY(0);
}

.dark-theme .secondary-btn {
    background-color: var(--gray-700);
    color: var(--gray-300);
}

.dark-theme .secondary-btn:hover {
    background-color: var(--gray-600);
}

/* Options Container - Enhanced with better visual grouping */
.options-container {
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.option-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Enhanced option buttons with better transitions */
.option-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-full);
    color: var(--gray-700);
    transition: all var(--transition);
    transform: scale(1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.option-btn.active {
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.option-btn.active::before {
    opacity: 1;
}

.option-btn:hover:not(.active) {
    background-color: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Enhanced slider with better visual feedback */
.slider-container {
    margin-bottom: var(--spacing-4);
}

.slider-container:last-child {
    margin-bottom: 0;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2);
}

.slider-container label span {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.slider-container label span.value-change {
    color: var(--accent-color);
    transform: scale(1.2);
}

.slider {
    width: 100%;
    height: 8px;
    background: var(--gray-300);
    border-radius: var(--border-radius-full);
    outline: rgba(15, 23, 42, 0.1);
    -webkit-appearance: none;
    appearance: none;
    margin: var(--spacing-2) 0;
    transition: background var(--transition-fast);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast);
    border: 2px solid white;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition-fast);
    border: 2px solid white;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Action Container - Enhanced button styling */
.action-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md), 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

/* Add shine effect to action button */
.action-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 6s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    from {
        transform: translateX(-100%) rotate(30deg);
    }
    to {
        transform: translateX(100%) rotate(30deg);
    }
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(var(--primary-color-rgb), 0.4);
}

.action-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.action-btn:disabled {
    background: linear-gradient(135deg, var(--gray-400), var(--gray-500));
    cursor: not-allowed;
    box-shadow: var(--shadow);
}

/* Enhanced pulse animation for call-to-action buttons */
.action-btn.pulse {
    animation: pulse-shadow 3s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
        box-shadow: var(--shadow-md), 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: var(--shadow-md), 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* Results Container - Enhanced with better animations */
.results-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    animation: fadeIn 0.5s ease-out;
    box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.results-container h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    text-align: center;
}
/* Overlay styles - more subtle with animation */
        .cookie-consent-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 9998;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .cookie-consent-overlay.visible {
            opacity: 1;
        }
        
        /* Main banner styles - cleaner, more compact design */
        .cookie-consent-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 1200px;
            background-color: white;
            padding: 16px 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            border-radius: 8px;
            display: none;
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .cookie-consent-banner.visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        
        /* Cookie banner content layout */
        .cookie-banner-content {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .cookie-banner-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .cookie-banner-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--secondary-color, #2C3E50);
        }
        
        .cookie-banner-description {
            font-size: 0.95rem;
            max-width: 90%;
        }
        
        /* IAB consent info - more subtle */
        .iab-consent-info {
            background-color: rgba(232, 244, 252, 0.5);
            padding: 8px 12px;
            border-radius: 4px;
            margin: 6px 0;
            font-size: 0.85rem;
        }
        
        /* Button styles - more modern and attractive */
        .cookie-banner-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .cookie-btn {
            padding: 8px 16px;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            border: none;
            transition: all 0.2s ease;
        }
        
        .cookie-btn-primary {
            background-color: var(--primary-color, #4CAF50);
            color: white;
        }
        
        .cookie-btn-primary:hover {
            background-color: #43a047;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .cookie-btn-secondary {
            background-color: var(--secondary-color, #2C3E50);
            color: white;
        }
        
        .cookie-btn-secondary:hover {
            background-color: #253444;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .cookie-btn-outline {
            background-color: transparent;
            border: 1px solid var(--secondary-color, #2C3E50);
            color: var(--secondary-color, #2C3E50);
        }
        
        .cookie-btn-outline:hover {
            background-color: rgba(44, 62, 80, 0.05);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }
        
        .cookie-link {
            color: var(--primary-color, #4CAF50);
            text-decoration: none;
            font-size: 0.85rem;
            margin-left: auto;
        }
        
        .cookie-link:hover {
            text-decoration: underline;
        }
        
        .cookie-timestamp {
            font-size: 0.75rem;
            color: #777;
            margin-top: 5px;
        }
        
        /* Three-button layout - more responsive */
        .cookie-banner-actions.three-button {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        @media (min-width: 768px) {
            .cookie-banner-actions.three-button {
                display: flex;
                justify-content: flex-start;
            }
        }
        
        /* Preferences panel - cleaner design */
        .cookie-preference-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            width: 90%;
            max-width: 700px;
            max-height: 85vh;
            background-color: white;
            padding: 24px;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            z-index: 10000;
            display: none;
            opacity: 0;
            overflow-y: auto;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .cookie-preference-panel.visible {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        
        .preference-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .preference-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--secondary-color, #2C3E50);
        }
        
        .preference-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #777;
            transition: color 0.2s ease;
        }
        
        .preference-close:hover {
            color: #333;
        }
        
        .preference-description {
            margin-bottom: 20px;
            font-size: 0.95rem;
        }
        
        .location-hint {
            background-color: rgba(255, 193, 7, 0.1);
            padding: 8px 12px;
            border-radius: 4px;
            margin-top: 10px;
            font-size: 0.85rem;
            color: #856404;
            display: none;
        }
        
        /* Toggle switch - more modern */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 46px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .3s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: var(--primary-color, #4CAF50);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(22px);
        }
        
        /* Cookie categories - more compact */
        .preference-category {
            margin-bottom: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .preference-category:last-child {
            border-bottom: none;
        }
        
        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .category-title {
            font-weight: 600;
            color: var(--secondary-color, #2C3E50);
        }
        
        .category-description {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
        }
        
        /* Purpose-specific consent styles */
        .purposes-list {
            margin-top: 10px;
            padding-left: 15px;
        }
        
        .purpose-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f8f8f8;
            font-size: 0.85rem;
        }
        
        .purpose-item:last-child {
            border-bottom: none;
        }
        
        .purpose-name {
            font-weight: 500;
            color: #555;
        }
        
        .purpose-description {
            font-size: 0.8rem;
            color: #777;
            margin-top: 2px;
        }
        
        /* Footer button for cookie settings - subtle but accessible */
        .cookie-settings-footer {
            position: fixed;
            bottom: 15px;
            right: 15px;
            z-index: 9990;
        }
        
        .cookie-settings-footer .cookie-btn {
            font-size: 0.8rem;
            padding: 6px 10px;
            opacity: 0.85;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .cookie-settings-footer .cookie-btn:hover {
            opacity: 1;
        }
        
        /* Legitimate interest section */
        .legitimate-interest-section {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }
        
        .legitimate-interest-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .legitimate-interest-title {
            font-weight: 600;
            color: var(--secondary-color, #2C3E50);
        }
        
        /* Enhanced vendor panel */
        .vendor-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            background-color: white;
            padding: 25px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            z-index: 10001;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        
        .vendor-panel.visible {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        
        .vendor-search {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        
        .vendor-list {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid #f0f0f0;
            padding: 10px;
            border-radius: 4px;
        }
        
        .vendor-item {
            padding: 10px;
            border-bottom: 1px solid #f0f0f0;
            margin-bottom: 10px;
        }
        
        .vendor-item:last-child {
            border-bottom: none;
        }
        
        .vendor-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        
        .vendor-name {
            font-weight: 600;
            color: #333;
        }
        
        .vendor-details {
            font-size: 0.85rem;
            color: #666;
            margin-bottom: 8px;
        }
        
        .vendor-purposes {
            font-size: 0.8rem;
            color: #777;
            margin-bottom: 5px;
        }
        
        .vendor-links {
            display: flex;
            gap: 10px;
            font-size: 0.8rem;
        }
        
        .vendor-link {
            color: var(--primary-color, #4CAF50);
            text-decoration: none;
        }
        
        .vendor-link:hover {
            text-decoration: underline;
        }
        
        /* DSA transparency info */
        .dsa-info {
            background-color: rgba(255, 193, 7, 0.1);
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            font-size: 0.85rem;
            border-left: 3px solid #ffa000;
        }
        
        /* Scrollbar styling for better UX */
        .vendor-list::-webkit-scrollbar,
        .cookie-preference-panel::-webkit-scrollbar {
            width: 8px;
        }
        
        .vendor-list::-webkit-scrollbar-track,
        .cookie-preference-panel::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .vendor-list::-webkit-scrollbar-thumb,
        .cookie-preference-panel::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 10px;
        }
        
        .vendor-list::-webkit-scrollbar-thumb:hover,
        .cookie-preference-panel::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        .vendor-list-btn {
            text-decoration: underline;
            color: var(--primary-color, #4CAF50);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            font-size: 0.9rem;
        }
        
        /* Preference footer */
        .preference-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }
        
        /* IAB TCF integration styles */
        .tcf-info {
            background-color: rgba(232, 244, 252, 0.8);
            padding: 10px;
            border-radius: 4px;
            margin: 10px 0;
            font-size: 0.85rem;
            border-left: 3px solid #4CAF50;
        }
        
        /* Audit log styles */
        .audit-info {
            font-size: 0.8rem;
            color: #666;
            margin-top: 10px;
            padding: 8px;
            background-color: #f8f9fa;
            border-radius: 4px;
        }
        
        /* Animations and transitions */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Focus styles for accessibility */
        button:focus-visible, a:focus-visible {
            outline: 2px solid var(--accent-color, #FFC107);
            outline-offset: 2px;
        }
 
/* Enhanced Comparison Slider with better touch handling */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    touch-action: none;
    background-color: var(--gray-800);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition);
}

.after-image {
    width: 50%;
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    cursor: ew-resize;
    z-index: 10;
    transition: transform var(--transition-fast);
}

.slider-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(var(--primary-color-rgb), 0.3);
    transition: transform var(--transition-fast);
}

.slider-handle:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-handle::before {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 16px;
    z-index: 2;
}

.comparison-slider:hover .before-image img,
.comparison-slider:hover .after-image img {
    transform: scale(1.02);
}

.slider-handle.hover-effect::after {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(var(--primary-color-rgb), 0.4);
}

.slider-handle.keyboard-focus::after {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}

.label {
    position: absolute;
    bottom: 16px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    z-index: 5;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
}

.before-image .label {
    left: 16px;
}

.after-image .label {
    right: 16px;
}

/* Add ripple effect for comparison slider clicks */
.slider-ripple {
    position: absolute;
    background-color: rgba(var(--primary-color-rgb), 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.5s linear;
    z-index: 1;
}

@keyframes ripple-effect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* ... rest of the styles ... */

/* Enhanced loading screen with better animations */
.loading .splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
}

.loading .splash-screen .splash-logo {
    text-align: center;
    animation: pulse 2s infinite;
}

.loading .splash-screen .splash-loader {
    margin-top: 2rem;
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading .splash-screen .splash-loader-bar {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-bar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* Enhanced drag indicator */
.drag-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: bounce 1s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* Drop success animation */
.drop-success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 10;
}

/* Enhanced upload preview container */
.upload-preview-container {
    margin-top: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: slideDown 0.4s var(--transition-bounce);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-inner {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.preview-image-container {
    position: relative;
    flex-shrink: 0;
}

.preview-image-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.preview-controls {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    gap: 0.25rem;
}

.preview-zoom-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow);
}

.preview-zoom-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

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

.preview-file-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-file-details {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.preview-progress {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.preview-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.preview-actions {
    flex-shrink: 0;
}

.preview-remove-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-remove-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Lightbox for preview zoom */
.preview-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 4rem);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Image metadata display */
.image-metadata {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--gray-200);
    animation: fadeIn 0.3s ease;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.metadata-item:last-child {
    border-bottom: none;
}

.metadata-label {
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metadata-label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.metadata-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Batch controls */
.batch-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.batch-status {
    font-weight: 500;
    color: var(--gray-700);
}

.batch-actions {
    display: flex;
    gap: 0.5rem;
}

.batch-action-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-action-btn:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

/* Batch results */
.batch-results-summary {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.batch-results-header h3 {
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.batch-results-header p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.batch-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.batch-result-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    transform: scale(1);
}

.batch-result-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.batch-result-item.active {
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.batch-result-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.batch-result-info {
    padding: 0.5rem;
}

.batch-result-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Enhanced mobile navigation */
.mobile-nav-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-nav-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card-bg);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 90;
        justify-content: space-around;
        border-top: 1px solid var(--gray-200);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-nav-btn {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem;
        border-radius: var(--border-radius);
        transition: all var(--transition-fast);
        color: var(--gray-600);
        min-width: 60px;
        position: relative;
        overflow: hidden;
    }

    .mobile-nav-btn.active {
        color: var(--primary-color);
        background: rgba(var(--primary-color-rgb), 0.1);
    }

    .mobile-nav-btn.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 30px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        transform: translateX(-50%);
    }

    .mobile-nav-btn i {
        font-size: 1.2rem;
        transition: transform var(--transition-fast);
    }

    .mobile-nav-btn span {
        font-size: 0.7rem;
        font-weight: 500;
    }

    .mobile-nav-btn.btn-pressed {
        transform: scale(0.95);
        background: var(--gray-200);
    }

    /* Adjust main content for mobile nav */
    main {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    /* Hide desktop navigation on mobile */
    .tools-nav {
        display: none;
    }
}

/* Enhanced error messages */
.error-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: var(--z-modal);
    max-width: 400px;
    pointer-events: none;
}

.error-message {
    background: var(--error-color);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    pointer-events: all;
    animation: slideInRight 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    animation: errorTimer 8s linear;
}

@keyframes errorTimer {
    from { width: 100%; }
    to { width: 0; }
}

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

.error-message.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.error-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
}

.error-content {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced success toast */
.success-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: transform var(--transition);
    backdrop-filter: blur(10px);
}

.success-toast.show {
    transform: translateX(-50%) translateY(0);
}

.success-toast i {
    font-size: 1.1rem;
}

/* Enhanced floating action buttons */
.floating-actions {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 80;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.fab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.fab-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.fab-button:hover::before {
    opacity: 1;
}

.fab-button.hidden {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.fab-button.at-bottom {
    background: var(--accent-color);
}

@media (max-width: 767px) {
    .floating-actions {
        bottom: calc(5rem + env(safe-area-inset-bottom) + 1rem);
        right: 1rem;
    }
    
    main {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
        padding-top: 1rem;
    }
}

/* Enhanced AI analysis panel */
.ai-analysis-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--gray-200);
}

.ai-analysis-panel.show {
    right: 0;
}

.panel-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-panel {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* Analysis loading state */
.analysis-loading {
    text-align: center;
    padding: 2rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Analysis results */
.analysis-results {
    animation: fadeIn 0.5s ease;
}

.analysis-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.analysis-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.analysis-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.issues-list {
    list-style: none;
    padding: 0;
}

.issues-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.issues-list li::before {
    content: '⚠️';
    font-size: 0.9rem;
}

.tool-recommendation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.tool-recommendation i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tool-recommendation span {
    font-weight: 600;
    color: var(--primary-color);
}

.recommended-settings {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-name {
    font-weight: 500;
    color: var(--gray-700);
}

.setting-value {
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

.analysis-error {
    text-align: center;
    padding: 2rem 0;
    color: var(--error-color);
}

.analysis-error i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* FAQ Tool Styles */
.faq-search-container {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    background: var(--card-bg);
    color: var(--gray-800);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.faq-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-category-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.faq-category-btn:hover {
    background: var(--gray-300);
}

.faq-category-btn.active {
    background: var(--primary-color);
    color: white;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gray-50);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.4;
    flex-grow: 1;
}

.faq-question i {
    color: var(--gray-500);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    background: var(--card-bg);
    display: none;
    animation: fadeIn 0.3s ease;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dark theme adjustments */
.dark-theme .search-box input {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-200);
}

.dark-theme .faq-question {
    background: var(--gray-700);
}

.dark-theme .faq-question:hover {
    background: var(--gray-600);
}

.dark-theme .faq-question h3 {
    color: var(--gray-200);
}

.dark-theme .faq-answer {
    background: var(--gray-800);
}

.dark-theme .faq-answer p {
    color: var(--gray-300);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .faq-categories {
        gap: 0.25rem;
    }
    
    .faq-category-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
}
/* Enhanced history panel */
.history-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transition: left var(--transition);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--gray-200);
}

.history-panel.show {
    left: 0;
}

.history-list {
    flex-grow: 1;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 1rem;
}

.history-item:hover {
    background: var(--gray-50);
}

.history-thumbnail {
    flex-shrink: 0;
}

.history-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.history-tool {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.history-tool i {
    color: var(--primary-color);
}

.history-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.history-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.history-action-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.history-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.history-action-btn.delete-btn:hover {
    background: var(--error-color);
}

.history-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* Example button enhancement */
.example-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), #06b6d4);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: var(--shadow);
}

.example-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #14b8a6, #0891b2);
}

/* Upload success animation */
.upload-btn.upload-success {
    background: var(--success-color) !important;
    transform: scale(1.05);
}

/* Pulse upload animation */
.upload-area.pulse-upload {
    animation: pulse-upload 3s infinite;
}

@keyframes pulse-upload {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* Upload area animations */
.upload-area.drag-active {
    transform: scale(1.02);
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
}

.upload-area.upload-success {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

/* Enhanced bundle cards */
.bundle-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bundle-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.bundle-card.feature-highlight {
    border-color: var(--accent-color);
}

.bundle-card-inner {
    padding: 1.5rem;
}

.bundle-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bundle-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bundle-title h3 {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.bundle-title p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.bundle-includes {
    margin-bottom: 1.5rem;
}

.bundle-includes p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.bundle-includes i {
    color: var(--success-color);
    font-size: 0.8rem;
}

.bundle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.bundle-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bundle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Bundle notification */
.bundle-notification {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--info-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 1rem;
    transition: transform var(--transition);
}

.bundle-notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Adjustment tool enhancements */
.adjustment-editor {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.cropper-container {
    max-height: 400px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--gray-800);
}

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

.control-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.adjustment-btn {
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.adjustment-btn:hover {
    background: var(--gray-300);
    transform: translateY(-2px);
}

.adjustment-btn.active {
    background: var(--primary-color);
    color: white;
}

.aspect-ratio-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aspect-ratio-selector label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.aspect-ratio-selector select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.adjustment-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.adjustment-actions p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.adjustment-destinations {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.destination-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.destination-btn:hover:not(:disabled) {
    background: #14b8a6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.destination-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

/* Toggle switches */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch input[type="checkbox"] {
    width: 48px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    position: relative;
    appearance: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-switch input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.toggle-switch input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.toggle-switch label {
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    margin: 0;
}

/* Format support notice */
.format-support-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--info-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.format-support-icon {
    color: var(--info-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.format-support-message {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.4;
}

/* Footer enhancement */
footer {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    color: var(--gray-300);
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-tagline {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.copyright {
    color: var(--gray-500);
    font-size: 0.8rem;
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
}

/* Enhanced responsive design */
@media (max-width: 640px) {
    .bundle-options {
        grid-template-columns: 1fr;
    }
    
    .batch-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .adjustment-destinations {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ai-analysis-panel,
    .history-panel {
        width: 100vw;
        max-width: none;
    }
    
    .ai-analysis-panel {
        right: -100vw;
    }
    
    .history-panel {
        left: -100vw;
    }
}

/* Dark theme adjustments for new components */
.dark-theme .preview-file-name,
.dark-theme .metadata-value,
.dark-theme .batch-result-name {
    color: var(--gray-200);
}

.dark-theme .image-metadata,
.dark-theme .batch-controls,
.dark-theme .adjustment-editor {
    background: var(--gray-700);
    border-color: var(--gray-600);
}

.dark-theme .metadata-item,
.dark-theme .analysis-section {
    border-color: var(--gray-600);
}

.dark-theme .recommended-settings {
    background: var(--gray-800);
}

.dark-theme .format-support-notice {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
}

/* Performance optimizations */
.tool-container {
    contain: layout style paint;
}

.batch-item img,
.history-thumbnail img,
.preview-image-container img {
    will-change: transform;
}

.comparison-slider {
    contain: layout style paint;
}

/* Print styles */
@media print {
    .floating-actions,
    .mobile-nav-bar,
    .ai-analysis-panel,
    .history-panel,
    .error-container,
    .success-toast,
    .bundle-notification {
        display: none !important;
    }
}
/* Enhanced help system styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.tutorial-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tutorial-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
}

.close-tutorial {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.close-tutorial:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Help tabs */
.help-tabs {
    display: flex;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.help-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.help-tab:hover {
    background: var(--gray-200);
}

.help-tab.active {
    color: var(--primary-color);
    background: var(--card-bg);
}

.help-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Tutorial steps content */
.tutorial-steps-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.tutorial-step {
    text-align: center;
}

.tutorial-step img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.tutorial-step h4 {
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.tutorial-step p {
    color: var(--gray-600);
    line-height: 1.6;
}