/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

.light-mode {
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe5db;
    --text-primary: #2d2a26;
    --text-secondary: #5a5650;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.8s ease, color 0.8s ease;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* ==================== BACKGROUND ==================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Stars */
.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    transition: transform 0.3s ease-out;
}

.star.connected {
    box-shadow: 0 0 10px 2px rgba(99, 102, 241, 0.8);
}

.light-mode .star {
    background: #3a3530;
    box-shadow: 0 0 3px rgba(58, 53, 48, 0.3);
}

.light-mode .star.connected {
    box-shadow: 0 0 8px 2px rgba(79, 70, 229, 0.6);
    background: #4f46e5;
}

/* Constellation Lines */
.constellation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Mouse Trail Canvas */
.mouse-trail-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Mountains */
.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 10;
}

.mountain {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.mountain-back {
    height: 45%;
    background: linear-gradient(180deg, #3d2a5c 0%, #2a1f4a 100%);
    clip-path: polygon(0% 100%, 5% 60%, 15% 75%, 25% 40%, 35% 55%, 45% 25%, 55% 45%, 65% 20%, 75% 50%, 85% 35%, 95% 55%, 100% 45%, 100% 100%);
    z-index: 11;
}

.mountain-mid {
    height: 35%;
    background: linear-gradient(180deg, #5a3d7a 0%, #4a2d6a 100%);
    clip-path: polygon(0% 100%, 0% 50%, 10% 65%, 20% 35%, 30% 50%, 40% 20%, 50% 40%, 60% 15%, 70% 45%, 80% 25%, 90% 50%, 100% 35%, 100% 100%);
    z-index: 12;
}

.mountain-front {
    height: 25%;
    background: linear-gradient(180deg, #7a5a9a 0%, #6a4a8a 100%);
    clip-path: polygon(0% 100%, 0% 60%, 15% 40%, 25% 55%, 35% 30%, 50% 50%, 65% 25%, 80% 45%, 90% 35%, 100% 50%, 100% 100%);
    z-index: 13;
}

.light-mode .mountain-back {
    background: linear-gradient(180deg, #a8b5a0 0%, #8fa085 100%);
}
.light-mode .mountain-mid {
    background: linear-gradient(180deg, #c5d4bc 0%, #b0c0a5 100%);
}
.light-mode .mountain-front {
    background: linear-gradient(180deg, #d8e5d0 0%, #c8d8bf 100%);
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    z-index: 9;
    opacity: 0;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
}

.light-mode .shooting-star {
    background: #5a5040;
    box-shadow: 0 0 4px 1px rgba(90, 80, 64, 0.4);
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -80px;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
}

.light-mode .shooting-star::after {
    background: linear-gradient(to right, transparent, rgba(90, 80, 64, 0.6));
}

/* Navbar dropdown açık kalması için */
.nav-category .dropdown-menu {
    padding-top: 15px;
    margin-top: -10px;
}

/* Efekt seçimi için koyu arka plan beyaz yazı */
.tool-option-select {
    background: rgba(20, 20, 40, 0.9);
    color: #ffffff;
}

.tool-option-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.tool-option-select optgroup {
    background: #12122a;
    color: var(--accent);
    font-weight: 600;
}

.light-mode .tool-option-select {
    background: rgba(255, 255, 255, 0.95);
    color: #2d2a26;
}

.light-mode .tool-option-select option {
    background: #ffffff;
    color: #2d2a26;
}

.light-mode .tool-option-select optgroup {
    background: #f5f0e8;
    color: var(--accent);
}

/* Efekt seçimi için koyu arka plan beyaz yazı */
.tool-option-select {
    background: rgba(20, 20, 40, 0.9);
    color: #ffffff;
}

.tool-option-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

.tool-option-select optgroup {
    background: #12122a;
    color: var(--accent);
    font-weight: 600;
}

.light-mode .tool-option-select {
    background: rgba(255, 255, 255, 0.95);
    color: #2d2a26;
}

.light-mode .tool-option-select option {
    background: #ffffff;
    color: #2d2a26;
}

.light-mode .tool-option-select optgroup {
    background: #f5f0e8;
    color: var(--accent);
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(400px, 300px);
    }
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: -80px;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: top 0.4s ease, background 0.8s ease;
}

.navbar.visible {
    top: 0;
}

.light-mode .navbar {
    background: rgba(240, 244, 255, 0.9);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.5s ease, opacity 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Inactive state (when tab is hidden) - controlled by JS */
.logo.inactive {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.6;
}

/* Digital Clock */
.datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(99, 102, 241, 0.3);
}

.digital-clock {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.clock-segment {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.clock-separator {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    animation: blink 1s infinite;
    margin: 0 1px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.date-compact {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.date-compact .day {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.65rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 26px;
    background: linear-gradient(135deg, #1a1a3a 0%, #2a2a5a 100%);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.5s ease;
    overflow: hidden;
}

.light-mode .theme-toggle {
    background: linear-gradient(135deg, #87CEEB 0%, #FFE4B5 100%);
}

.theme-toggle-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #f0f0f0;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.light-mode .theme-toggle-ball {
    left: 26px;
    background: #FFD700;
}

.navbar-center {
    display: flex;
    gap: 10px;
}
/* Navbar Category Dropdown (like homepage cards) */
.navbar-category-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 40px 60px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.navbar-category-dropdown.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.light-mode .navbar-category-dropdown {
    background: rgba(245, 240, 232, 0.98);
}

.navbar-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-category-dropdown {
        padding: 30px 20px;
    }
    
    .navbar-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Dropdown Menu System */
.nav-category {
    position: relative;
}

.nav-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-category-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-category-btn .arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.nav-category:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.light-mode .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
}

.nav-category:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.dropdown-item .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Home Button */
.home-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(-3px);
}

.home-btn.visible {
    display: flex;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 0 20px;
}

.hero-content {
    text-align: center;
    z-index: 21;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(99, 102, 241, 0.2); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899, #f59e0b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border: none;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.5);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
    z-index: 25;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* ==================== PAGE TRANSITION ==================== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a1a;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.page-transition.active {
    transform: translateX(0);
}

.page-transition.exit {
    transform: translateX(-100%);
}

.light-mode .page-transition {
    background: #1a1a2e;
}

/* Main Content Container */
.main-content {
    transition: opacity 0.3s ease;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==================== CATEGORY CARDS SECTION ==================== */
.category-cards-section {
    position: relative;
    z-index: 20;
    padding: 80px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-cards-header {
    text-align: center;
    margin-bottom: 50px;
    transition: all 0.5s ease;
}

.category-cards-header.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    position: absolute;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    width: 100%;
    transition: all 0.5s ease;
}

.category-cards-grid.collapsed {
    display: flex;
    justify-content: center;
}

.category-card {
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.light-mode .category-card {
    background: rgba(255, 255, 255, 0.85);
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

.category-card.expanded {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    border-radius: 20px;
}

.category-card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.category-card.expanded .category-card-icon {
    font-size: 2rem;
    margin-bottom: 0;
    margin-right: 15px;
}

.category-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.category-card.expanded .category-card-title {
    font-size: 1rem;
    margin-bottom: 0;
}

.category-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    transition: all 0.4s ease;
}

.category-card.expanded .category-card-desc {
    display: none;
}

.category-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.category-card.expanded .category-card-header {
    justify-content: flex-start;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* ==================== CONVERSION PANEL ==================== */
.conversion-panel {
    display: none;
    width: 100%;
    opacity: 0;
}

.category-card.expanded .conversion-panel {
    display: block;
    opacity: 1;
}

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

.conversion-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-height: 250px;
}

.conversion-left, .conversion-right {
    flex: 1;
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.conversion-left:hover, .conversion-left.dragover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.conversion-left.has-files {
    border-style: solid;
    background: rgba(99, 102, 241, 0.08);
}

.conversion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    min-width: 60px;
}

.conversion-arrow span {
    animation: arrowFlow 1.5s ease-in-out infinite;
}

@keyframes arrowFlow {
    0%, 100% { transform: translateX(-5px); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

.upload-prompt {
    text-align: center;
}

.upload-prompt-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-prompt-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-prompt-text span {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

/* File Preview in Conversion */
.files-preview {
    display: none;
    text-align: center;
    width: 100%;
}

.files-preview.visible {
    display: block;
}

.files-preview-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.files-preview-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.files-preview-names {
    color: var(--text-secondary);
    font-size: 0.8rem;
    max-height: 60px;
    overflow-y: auto;
}

.reset-files-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.reset-files-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(180deg);
}

.reset-files-btn.visible {
    display: flex;
}

/* Format Selector */
.format-selector {
    width: 100%;
}

.format-search {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.format-search:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.format-search::placeholder {
    color: var(--text-secondary);
}

.format-list {
    max-height: 180px;
    overflow-y: auto;
    position: relative;
}

.format-list::-webkit-scrollbar {
    width: 6px;
}

.format-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.format-item:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: translateX(5px);
}

.format-item.selected {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid var(--accent);
}

.format-item-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-item-star {
    color: #f59e0b;
}

.format-item-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.format-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    padding: 10px 12px 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 5px;
}

/* Format Warning */
.format-warning {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 15px;
}

.format-warning.visible {
    display: flex;
}

/* Convert Button */
.convert-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.convert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Processing State */
.conversion-processing {
    display: none;
    width: 100%;
    padding: 30px;
    text-align: center;
}

.conversion-processing.visible {
    display: block;
}

.processing-gradient {
    height: 6px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #6366f1);
    background-size: 300% 100%;
    border-radius: 3px;
    animation: gradientSlide 2s linear infinite;
    margin-bottom: 20px;
}

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

.processing-files-list {
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.processing-file-item {
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    margin-bottom: 6px;
    animation: slideInFile 0.3s ease;
}

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

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Download Section */
.download-section {
    display: none;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.download-section.visible {
    display: block;
}

.download-complete-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.download-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn-main {
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.download-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.new-conversion-btn {
    padding: 16px 32px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.new-conversion-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* ==================== WARNING MODAL ==================== */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.warning-modal.visible {
    display: flex;
}

.warning-modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.warning-modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.warning-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f59e0b;
}

.warning-modal-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.warning-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.warning-modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.warning-modal-btn.primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.warning-modal-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ==================== TOOL PAGE ==================== */
.tool-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    overflow-y: auto;
}

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

.tool-page-content {
    position: relative;
    z-index: 101;
    min-height: 100vh;
    padding-top: 90px;
}

.tool-hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.tool-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.tool-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

/* File Upload Area */
.upload-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.upload-area {
    width: 100%;
    max-width: 700px;
    min-height: 250px;
    border: 3px dashed rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(99, 102, 241, 0.02);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    transform: scale(1.02);
}

.upload-area.has-files {
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 200px;
}

.upload-icon {
    font-size: 4rem;
    opacity: 0.6;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.upload-text span {
    color: var(--accent);
    cursor: pointer;
}

/* File Preview Area */
.file-preview-container {
    display: none;
    width: 40%;
    min-width: 200px;
    background: rgba(99, 102, 241, 0.05);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.file-preview-container.visible {
    display: flex;
}

.file-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.file-icon-large {
    font-size: 5rem;
}

/* Reset button for tool page */
.reset-upload-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.reset-upload-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(180deg);
}

.reset-upload-btn.visible {
    display: flex;
}

/* Arrow Animation */
.arrow-indicator {
    display: none;
    width: 60px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.arrow-indicator.visible {
    display: flex;
}

.arrow-animated {
    font-size: 2rem;
    color: var(--accent);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(-10px); opacity: 0.5; }
    50% { transform: translateX(10px); opacity: 1; }
}

/* Operations Selection */
.operations-container {
    display: none;
    flex: 1;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
}

.operations-container.visible {
    display: flex;
}

.operations-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.operation-btn {
    padding: 12px 20px;
    margin-bottom: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.operation-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

/* Processing Area */
.processing-area {
    display: none;
    padding: 30px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.processing-area.visible {
    display: block;
}

.processing-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.processing-log .log-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInLog 0.3s ease;
}

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

.download-btn {
    display: none;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn.visible {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Tool Operations Grid */
.tool-operations-section {
    padding: 60px 40px;
}

.tool-operations-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.operation-card {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.light-mode .operation-card {
    background: rgba(255, 255, 255, 0.8);
}

.operation-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.operation-card .op-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.operation-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.operation-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==================== SECTIONS ==================== */
.section {
    min-height: 100vh;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin-bottom: 50px;
}

/* Vision Mission */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

.vision-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.vision-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Reviews */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    width: 100%;
    padding: 20px;
}

.review-card {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.light-mode .review-card {
    background: rgba(255, 255, 255, 0.8);
}

.review-stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.review-author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.review-author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #FFDD00, #FBB034);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(251, 176, 52, 0.4);
}

.coffee-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(251, 176, 52, 0.5);
}

/* Footer */
footer {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tool Page Footer */
.tool-footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Global Drop Zone */
.global-drop-zone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.global-drop-zone.active {
    display: flex;
}

.global-drop-zone .drop-icon {
    font-size: 6rem;
    animation: dropBounce 1s ease infinite;
}

@keyframes dropBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.global-drop-zone p {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.global-drop-zone .drop-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.drop-option-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.drop-option-btn.primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
}

.drop-option-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Sequential Panel Styles */
#sequentialPanel {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

#sequentialPanel::-webkit-scrollbar {
    width: 4px;
}

#sequentialPanel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.light-mode #sequentialPanel {
    background: rgba(255, 255, 255, 0.95);
}

/* Mixed Files Modal Extra Styles */
#mixedFilesModal .warning-modal-content {
    border-color: rgba(99, 102, 241, 0.3);
}

/* Skip Button Animation */
@keyframes skipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#sequentialPanel button:hover {
    animation: skipPulse 0.5s ease;
}

/* Tools Grid for Image category */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 10px;
}

.tool-card-mini {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card-mini:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.tool-card-mini-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tool-card-mini-name {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.tool-card-mini-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.tool-work-area {
    animation: fadeSlideIn 0.4s ease;
}

.tool-work-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.back-to-tools-btn {
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.back-to-tools-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.tool-work-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.tool-options {
    text-align: center;
}

.tool-option-group {
    margin-bottom: 15px;
}

.tool-option-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: left;
}

.tool-option-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.tool-option-input:focus {
    border-color: var(--accent);
}

.tool-option-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.quality-slider {
    width: 100%;
    margin-top: 5px;
    accent-color: var(--accent);
}

.quality-preset-btn {
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-preset-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.quality-preset-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ==================== PREVIEW SYSTEM ==================== */
.preview-toggle-btn {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    animation: previewBtnPulse 2s ease-in-out infinite;
}

@keyframes previewBtnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(99, 102, 241, 0.6); }
}

.preview-toggle-btn:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.preview-toggle-btn.visible {
    display: flex;
}

.preview-toggle-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: none;
}

/* Preview Container */
.preview-container {
    display: none;
    width: 100%;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    animation: previewSlideIn 0.4s ease;
}

.preview-container.visible {
    display: block;
}

@keyframes previewSlideIn {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 20px;
        margin-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding: 20px;
        margin-bottom: 20px;
    }
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    flex-wrap: wrap;
}

.preview-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-nav-btn {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preview-nav-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

.preview-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.preview-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.preview-close-btn {
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.preview-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Preview Content */
.preview-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.preview-box {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-image-wrapper {
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.preview-image.loading {
    opacity: 0.5;
    filter: blur(2px);
}

.preview-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.preview-loading.visible {
    display: block;
}

.preview-loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.preview-arrow {
    font-size: 2rem;
    color: var(--accent);
    animation: previewArrowPulse 1.5s ease-in-out infinite;
}

@keyframes previewArrowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-5px); }
    50% { opacity: 1; transform: translateX(5px); }
}

.preview-info {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.preview-size {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    margin-top: 5px;
}

/* Preview Update Notice */
.preview-update-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #f59e0b;
}

.preview-update-btn {
    padding: 5px 12px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    color: #f59e0b;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preview-update-btn:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* ==================== COMPARISON SLIDER ==================== */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
    user-select: none;
    background: rgba(0, 0, 0, 0.2);
    /* GPU acceleration for smoother animations */
    will-change: transform;
    transform: translateZ(0);
}

/* Arka plan (Sonra) görseli - TAM GÖRÜNÜR */
.comparison-after {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    object-fit: contain;
    /* Ensure proper sizing */
    max-height: 350px;
}

/* Ön plan (Önce) görseli - clip-path ile kesilecek */
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Default 50% clip - sağdan %50 kes */
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.comparison-before img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    /* Match the after image sizing */
    max-height: 350px;
}

/* Slider çubuğu */
.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    will-change: left;
}

.comparison-slider::before {
    display: none;
}

.comparison-slider::after {
    display: none;
}

.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 11;
    border: 3px solid var(--accent);
}

.comparison-label {
    position: absolute;
    bottom: 10px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
}

.comparison-label.before {
    left: 10px;
}

.comparison-label.after {
    right: 10px;
}

/* Preview Comparison Mode */
.preview-comparison-mode .preview-content {
    flex-direction: column;
    gap: 15px;
}

.preview-comparison-mode .preview-box,
.preview-comparison-mode .preview-arrow {
    display: none;
}

.preview-comparison-wrapper {
    display: none;
    width: 100%;
}

.preview-comparison-mode .preview-comparison-wrapper {
    display: block;
}

.comparison-toggle-btn {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comparison-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.comparison-toggle-btn.active {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ==================== MANUAL CROP ==================== */
.crop-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.crop-mode-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.crop-mode-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.crop-mode-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.manual-crop-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.manual-crop-container.visible {
    display: flex;
}

.crop-canvas-wrapper {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: crosshair;
    background: rgba(0, 0, 0, 0.3);
}

.crop-canvas-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.1s ease;
}

.crop-selection {
    position: absolute;
    border: 2px dashed var(--accent);
    background: rgba(99, 102, 241, 0.1);
    pointer-events: none;
    display: none;
}

.crop-selection.visible {
    display: block;
}

.crop-selection-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--accent);
    border-radius: 2px;
    pointer-events: auto;
    cursor: nwse-resize;
}

.crop-selection-corner.tl { top: -6px; left: -6px; cursor: nwse-resize; }
.crop-selection-corner.tr { top: -6px; right: -6px; cursor: nesw-resize; }
.crop-selection-corner.bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
.crop-selection-corner.br { bottom: -6px; right: -6px; cursor: nwse-resize; }

.crop-zoom-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.crop-zoom-slider {
    width: 120px;
    accent-color: var(--accent);
}

.crop-dimensions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.crop-dimension-input {
    width: 70px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
}

.crop-apply-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.crop-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */
.star {
    will-change: transform;
    backface-visibility: hidden;
}

.category-card {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.conversion-panel {
    will-change: opacity, transform;
    contain: layout style paint;
}

/* Low performance mode - disable heavy animations */
body.low-performance .star {
    transition: none !important;
}

body.low-performance .constellation-canvas,
body.low-performance .mouse-trail-canvas {
    display: none;
}

body.low-performance .cursor-glow {
    display: none;
}

body.low-performance .shooting-star {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .navbar-center {
        display: none;
    }

    .datetime {
        display: none;
    }

    .section {
        padding: 60px 20px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .upload-area.has-files {
        flex-direction: column;
    }

    .file-preview-container {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }

    .conversion-container {
        flex-direction: column;
    }

    .conversion-arrow {
        transform: rotate(90deg);
        min-height: 40px;
    }

    .category-cards-grid {
        grid-template-columns: 1fr;
    }

    #sequentialPanel {
        width: 260px;
        right: -280px;
    }

    #sequentialPanel.visible {
        right: 10px;
    }
}
