/* style.css - PicShifter/* --- MODERN PREMIUM DESIGN SYSTEM --- */

:root {
    --brand: #3b82f6;
    --brand-hover: #2563eb;
    --brand-light: #dbeafe;
    --brand-soft: #eff6ff;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    --bg: #ffffff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* --- PROFESSIONAL NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand);
    transition: var(--transition);
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo img {
    height: 35px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.nav-link.active {
    color: var(--brand);
    background: var(--brand-light);
}

/* --- PROFESSIONAL FOOTER --- */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 4px solid var(--brand);
    margin-top: 80px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 50%, var(--brand) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
    font-weight: 500;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand);
    transition: var(--transition);
    opacity: 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #e2e8f0;
    font-size: 0.95rem;
    position: relative;
    font-weight: 500;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gradient);
}

/* --- MAIN CONTAINER --- */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 140px);
}

/* --- CARDS --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--brand);
    color: var(--brand);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* --- PREMIUM TOOL CARDS --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.tool-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: translateY(-100%);
    transition: var(--transition);
}

.tool-card:hover::before {
    transform: translateY(0);
}

.tool-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--brand);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.15));
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(59, 130, 246, 0.25));
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: var(--transition);
}

.tool-card:hover .tool-title {
    color: var(--brand);
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-card .btn-primary {
    width: 100%;
    justify-content: center;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius);
    background: var(--gradient);
    border: none;
    position: relative;
    overflow: hidden;
}

.tool-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.tool-card .btn-primary:hover::before {
    left: 100%;
}

.tool-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* --- DROP ZONE --- */
.drop-zone {
    border: 2px dashed var(--brand);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    background: var(--brand-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--brand-hover);
    background: var(--brand-light);
    transform: scale(1.02);
}

.drop-zone.dragover {
    background: var(--brand-light);
    border-color: var(--brand-hover);
}

.drop-zone-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.drop-zone h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.drop-zone p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- SEARCH BAR --- */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 50px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--surface);
    color: var(--text-main);
    transition: var(--transition);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.3rem;
    pointer-events: none;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    margin: 40px 0;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.content-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--brand);
    border-radius: 2px;
}

.content-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section li {
    padding: 8px 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 24px;
}

.content-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* --- TRUST BADGE --- */
.trust-badge {
    background: linear-gradient(135deg, var(--brand-soft), var(--brand-light));
    border: 1px solid var(--brand);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 32px 0;
    text-align: center;
}

.trust-badge h3 {
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.trust-badge p {
    color: var(--text-main);
    margin: 0;
}

/* --- RELATED TOOLS --- */
.related-tools {
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
}

.related-tools h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.related-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-tool-link {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.related-tool-link:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--brand) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 120px;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand);
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- DROPDOWN STYLES --- */
.dropdown {
    position: relative;
}

.more-tools-btn {
    color: var(--brand) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-card {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    min-width: 800px;
    max-width: 900px;
    z-index: 1000;
    margin-top: 10px;
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-card.show {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.dropdown-category h4 {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid var(--brand-soft);
    padding-bottom: 6px;
}

.dropdown-category a {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 0;
    transition: var(--transition);
    border-radius: var(--radius);
    margin-bottom: 2px;
}

.dropdown-category a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1200px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .main-container {
        padding: 20px 16px;
    }
    
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .drop-zone {
        padding: 40px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* --- LOADING STATES --- */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--brand);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- CONSISTENT MASTER HEADER --- */
header {
    height: 64px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.logo-box { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 30px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.5rem; color: var(--brand); letter-spacing: -0.8px; }

.header-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-item {
    text-decoration: none; color: var(--text-main); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    transition: all 0.2s ease; cursor: pointer;
}
.nav-item:hover { color: var(--brand); }

.dropdown { position: relative; display: flex; align-items: center; height: 64px; }
.more-tools-btn { color: var(--brand) !important; font-weight: 800; display: flex; align-items: center; gap: 4px; }

.dropdown-menu {
    display: none; position: absolute; top: 64px; right: 0;
    background: white; width: 1000px; padding: 30px;
    border-radius: 0 0 24px 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    border: 1px solid var(--border); grid-template-columns: repeat(5, 1fr);
    gap: 25px; z-index: 9999;
}

.dropdown:hover .dropdown-menu { display: grid; }
.menu-col h4 { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.1em; border-bottom: 1px solid var(--brand-soft); }
.menu-item { display: block; text-decoration: none; color: var(--text-main); font-size: 0.85rem; font-weight: 600; padding: 6px 0; transition: 0.2s; }
.menu-item:hover { color: var(--brand); padding-left: 5px; }

/* --- MEGA MENU --- */

/* --- SHARED TOOL UI --- */
.workspace { flex-grow: 1; padding: 60px 5%; display: flex; flex-direction: column; align-items: center; background-image: radial-gradient(var(--brand-soft) 1.2px, transparent 1.2px); background-size: 32px 32px; }
.tool-card { background: white; padding: 40px; border-radius: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); width: 100%; max-width: 850px; border: 1px solid var(--border); margin-bottom: 60px; }
.drop-zone { border: 2px dashed var(--brand); border-radius: 16px; padding: 60px 40px; text-align: center; cursor: pointer; background: #fff; transition: 0.3s ease; }
.drop-zone:hover { border-color: var(--brand-hover); background: var(--brand-soft); }
.drop-zone h3 { font-weight: 800; font-size: 1.4rem; margin-top: 15px; color: var(--text-main); }
.drop-zone p { color: var(--text-muted); font-size: 0.95rem; margin-top: 10px; }
.btn-main { background: var(--brand); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 700; flex: 3; cursor: pointer; transition: 0.3s; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

/* --- TOOL PAGE SPECIFIC STYLES --- */
.page-title { font-size: 2.8rem; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 10px; color: var(--text-main); }
.page-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

.custom-upload-icon {
    width: 80px; height: 80px; margin-bottom: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-direction: column;
}

.icon-svg { width: 60px; height: 60px; fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-base { width: 50px; height: 15px; border: 4px solid var(--text-main); border-top: 0; border-radius: 0 0 6px 6px; margin-top: -5px; }
.upload-text { font-weight: 800; font-size: 0.9rem; color: var(--text-main); text-transform: uppercase; margin-top: 8px; letter-spacing: 1px; }

#previewContainer { display: none; flex-direction: column; align-items: center; }
#canvasPreview { max-width: 100%; max-height: 350px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border); }
#imagePreview { max-width: 100%; max-height: 350px; border-radius: 12px; margin-bottom: 20px; border: 1px solid var(--border); }
.btn-group { display: flex; gap: 12px; width: 100%; }
.btn-secondary { background: #fff; color: var(--text-muted); border: 1px solid var(--border); padding: 16px; border-radius: 12px; font-weight: 700; flex: 1; cursor: pointer; transition: 0.3s; }

/* --- WATERMARK & CONTROL STYLES --- */
.controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; margin: 30px 0; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-weight: 700; font-size: 0.9rem; color: var(--text-main); }

.control-group input[type="text"],
.control-group input[type="number"],
.control-group select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--surface);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.control-group input[type="text"]:focus,
.control-group input[type="number"]:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--brand);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
}

.guide-container { max-width: 850px; width: 100%; margin-bottom: 100px; line-height: 1.8; text-align: justify; }
.guide-container h2 { font-size: 2rem; font-weight: 800; margin-bottom: 24px; color: var(--text-main); text-align: left; }
.guide-container p { margin-bottom: 24px; color: var(--text-main); font-size: 1.05rem; }

/* --- SPECIALIZED TOOL STYLES --- */
.controls-box { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; margin: 30px 0; }
.controls-box label { font-weight: 700; font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.controls-box input[type="range"] { width: 200px; }

.output-area { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 30px 0; }
.output-area label { font-weight: 800; font-size: 0.9rem; color: var(--text-main); }
.output-area textarea { 
    width: 100%; height: 120px; padding: 16px; border: 1px solid var(--border); 
    border-radius: 8px; font-family: monospace; font-size: 0.85rem; resize: vertical;
    background: var(--surface); color: var(--text-main);
}

.resultContainer { display: none; flex-direction: column; align-items: center; gap: 20px; width: 100%; margin: 30px 0; }
.resultContainer img { max-width: 100%; max-height: 400px; border-radius: 12px; border: 1px solid var(--border); }
.resultContainer textarea { 
    width: 100%; height: 100px; padding: 12px; border: 1px solid var(--border); 
    border-radius: 8px; font-family: monospace; font-size: 0.85rem; resize: vertical;
    background: var(--surface); color: var(--text-main);
}

.quality-display { 
    background: var(--brand-soft); padding: 8px 16px; border-radius: 50px; 
    color: var(--brand); font-weight: 800; font-size: 0.8rem; 
    display: flex; align-items: center; gap: 8px;
}

/* --- FOOTER STYLES FOR ALL TOOLS --- */
.footer-left { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); padding: 8px 16px; border-radius: 50px; color: var(--brand); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; }
.footer-center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: var(--text-main); font-weight: 700; }
.footer-right { display: flex; gap: 20px; }
.footer-btn { text-decoration: none; color: var(--text-main); font-size: 0.8rem; font-weight: 800; transition: color 0.2s; }
.footer-btn:hover { color: var(--brand); }

/* --- TOOL PAGE FOOTER --- */
.footer-left { display: flex; align-items: center; gap: 10px; background: var(--brand-soft); padding: 8px 16px; border-radius: 50px; color: var(--brand); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; }
.footer-center { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.85rem; color: var(--text-main); font-weight: 700; }
.footer-right { display: flex; gap: 20px; }
.footer-btn { text-decoration: none; color: var(--text-main); font-size: 0.8rem; font-weight: 800; transition: color 0.2s; }
.footer-btn:hover { color: var(--brand); }

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .dropdown-menu { width: 95vw; right: -2.5vw; grid-template-columns: repeat(2, 1fr); }
    footer { flex-direction: column; height: auto; padding: 20px; gap: 15px; text-align: center; }
}