/* ==========================================
   COMMON TOOL PAGE CSS - GLASSMORPHISM
   Fast, No Animation Lag, Fully Responsive
   ========================================== */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: rgba(31, 38, 135, 0.15);
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ✅ Static background - NO blob animation */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #fce4f0 50%, #e8f4f8 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(99,102,241,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236,72,153,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ❌ Kill ALL blob animations */
.bg-animation,
.blob, .blob-1, .blob-2, .blob-3,
.blob-4, .blob-5 {
    display: none !important;
    animation: none !important;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ========== GLASS ========== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.glass-light {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 20px rgba(31,38,135,0.1);
}

.glass-dark {
    background: rgba(30,41,59,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0; z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-size: 21px; font-weight: 800;
    text-decoration: none; color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
}
.logo i { color: var(--accent); font-size: 23px; }
.logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex; align-items: center; gap: 22px;
}
.nav-links a {
    text-decoration: none; color: var(--text-medium);
    font-weight: 500; font-size: 14px;
    display: flex; align-items: center; gap: 5px;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }

.nav-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    padding: 9px 20px; border-radius: 50px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(99,102,241,0.35) !important;
}

.hamburger {
    display: none; flex-direction: column;
    gap: 5px; cursor: pointer; z-index: 1001;
}
.hamburger span {
    width: 26px; height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ========== TOOL HEADER ========== */
.tool-header { padding: 25px 0 10px; }

.breadcrumb {
    display: flex; align-items: center;
    gap: 8px; font-size: 13px;
    color: var(--text-light); margin-bottom: 18px;
}
.breadcrumb a {
    color: var(--text-light); text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .fa-chevron-right { font-size: 10px; }
.breadcrumb > span { color: var(--primary); font-weight: 600; }

.tool-title {
    display: flex; align-items: center; gap: 16px;
}
.tool-title-icon {
    width: 58px; height: 58px;
    border-radius: 15px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 23px; color: white; flex-shrink: 0;
}
.tool-title h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.tool-title p { font-size: 13px; color: var(--text-medium); }

/* Icon Colors */
.icon-red    { background: linear-gradient(135deg,#f43f5e,#e11d48); }
.icon-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.icon-green  { background: linear-gradient(135deg,#22c55e,#16a34a); }
.icon-orange { background: linear-gradient(135deg,#f97316,#ea580c); }
.icon-purple { background: linear-gradient(135deg,#a855f7,#9333ea); }
.icon-teal   { background: linear-gradient(135deg,#14b8a6,#0d9488); }
.icon-pink   { background: linear-gradient(135deg,#ec4899,#db2777); }
.icon-indigo { background: linear-gradient(135deg,#6366f1,#4f46e5); }
.icon-cyan   { background: linear-gradient(135deg,#06b6d4,#0891b2); }
.icon-dark   { background: linear-gradient(135deg,#475569,#334155); }
.icon-yellow { background: linear-gradient(135deg,#eab308,#ca8a04); }

/* ========== AD SPACE ========== */
.ad-space {
    padding: 14px; text-align: center;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 13px; margin: 15px auto;
}
.ad-space i { margin-right: 6px; }

/* ========== TOOL AREA ========== */
.tool-area { padding: 10px 0 25px; }
.tool-wrapper { border-radius: var(--radius); overflow: hidden; }

/* ========== UPLOAD ZONE ========== */
.upload-zone {
    padding: 55px 35px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(99,102,241,0.3);
    border-radius: var(--radius);
    margin: 20px;
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
    position: relative;
}
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99,102,241,0.06);
}
.upload-zone-content { position: relative; z-index: 1; }

/* ✅ Upload icon - simple, no float animation */
.upload-zone .upload-icon {
    font-size: 55px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.upload-zone h2 {
    font-size: 22px; font-weight: 700;
    margin-bottom: 7px; color: var(--text-dark);
}
.upload-zone p {
    font-size: 13px; color: var(--text-light);
    margin-bottom: 22px;
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none;
    padding: 13px 32px; border-radius: 50px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

.upload-hints {
    display: flex; justify-content: center;
    gap: 20px; margin-top: 22px;
    color: var(--text-light); font-size: 12px;
    flex-wrap: wrap;
}
.upload-hints span {
    display: flex; align-items: center; gap: 5px;
}

.accepted-formats {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-light);
}
.accepted-formats span {
    background: rgba(99,102,241,0.1);
    padding: 2px 9px; border-radius: 20px;
    margin: 0 2px; font-weight: 600;
    color: var(--primary);
}

/* ========== FILES AREA ========== */
.files-area { padding: 22px; }

.files-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 18px;
    flex-wrap: wrap; gap: 8px;
}
.files-header h3 {
    font-size: 17px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.files-actions { display: flex; gap: 8px; }

.btn-sm {
    padding: 7px 16px; border-radius: 50px;
    border: none; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
    display: flex; align-items: center; gap: 5px;
}
.btn-primary-sm {
    background: rgba(99,102,241,0.1); color: var(--primary);
}
.btn-primary-sm:hover { background: var(--primary); color: white; }
.btn-danger-sm {
    background: rgba(239,68,68,0.1); color: var(--danger);
}
.btn-danger-sm:hover { background: var(--danger); color: white; }

/* File List */
.file-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 380px; overflow-y: auto;
    margin-bottom: 18px; padding-right: 4px;
}
.file-list::-webkit-scrollbar { width: 5px; }
.file-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); border-radius: 3px; }
.file-list::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.25); border-radius: 3px; }

.file-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, transform 0.15s ease;
}
.file-item:hover {
    background: rgba(255,255,255,0.6);
    transform: translateX(2px);
}

.file-thumb {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 16px; color: white; flex-shrink: 0;
}
.file-details { flex: 1; min-width: 0; }
.file-details h4 {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}
.file-details span { font-size: 11px; color: var(--text-light); }

.file-remove-btn {
    width: 32px; height: 32px;
    border: none; border-radius: 50%;
    background: rgba(239,68,68,0.1);
    color: var(--danger);
    cursor: pointer; font-size: 13px;
    transition: background 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.file-remove-btn:hover {
    background: var(--danger); color: white;
    transform: scale(1.08);
}

/* ========== OPTIONS PANEL ========== */
.options-panel {
    padding: 18px; border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.options-panel h4 {
    font-size: 14px; font-weight: 700;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 7px;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
    gap: 14px;
}

.option-field label {
    display: block; font-size: 11px;
    font-weight: 600; color: var(--text-medium);
    margin-bottom: 5px;
}
.option-field select,
.option-field input[type="text"],
.option-field input[type="number"],
.option-field input[type="password"],
.option-field input[type="url"],
.option-field textarea {
    width: 100%; padding: 9px 13px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 10px;
    background: rgba(255,255,255,0.4);
    font-size: 13px; color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.option-field select:focus,
.option-field input:focus,
.option-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.option-field textarea { resize: vertical; min-height: 75px; }

/* Range Slider */
.range-group { display: flex; align-items: center; gap: 10px; }
.range-group input[type="range"] {
    flex: 1; height: 6px; -webkit-appearance: none;
    background: rgba(99,102,241,0.2);
    border-radius: 3px; outline: none; border: none; padding: 0;
}
.range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%; cursor: pointer;
}
.range-value {
    min-width: 45px; text-align: center;
    font-weight: 700; color: var(--primary); font-size: 13px;
}

/* Radio/Checkbox */
.radio-group, .checkbox-group {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.radio-option, .checkbox-option {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 12px; font-weight: 600;
}
.radio-option:hover, .checkbox-option:hover { border-color: var(--primary); }
.radio-option.selected, .checkbox-option.selected {
    background: rgba(99,102,241,0.1);
    border-color: var(--primary); color: var(--primary);
}
.radio-option input, .checkbox-option input { display: none; }

/* Color picker */
.color-pick { display: flex; align-items: center; gap: 8px; }
.color-pick input[type="color"] {
    width: 38px; height: 38px;
    border: none; border-radius: 10px;
    cursor: pointer; background: none; padding: 0;
}

/* ========== ACTION BUTTON ========== */
.action-btn {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none;
    border-radius: var(--radius-sm);
    font-size: 17px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex; align-items: center;
    justify-content: center; gap: 9px;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99,102,241,0.35);
}
.action-btn:disabled { opacity: 0.5; pointer-events: none; }
.action-btn.btn-green {
    background: linear-gradient(135deg, var(--success), #16a34a);
}
.action-btn.btn-green:hover {
    box-shadow: 0 10px 28px rgba(34,197,94,0.35);
}

/* ========== PROCESSING ========== */
.processing-area {
    padding: 70px 35px; text-align: center;
}
.spinner {
    width: 56px; height: 56px;
    border: 4px solid rgba(99,102,241,0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 22px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-area h3 {
    font-size: 21px; font-weight: 700; margin-bottom: 7px;
}
.processing-area p {
    color: var(--text-light); font-size: 13px; margin-bottom: 22px;
}
.progress-bar {
    width: 100%; max-width: 380px;
    height: 8px; background: rgba(99,102,241,0.1);
    border-radius: 10px; margin: 0 auto; overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px; transition: width 0.3s ease;
}
.progress-text {
    font-size: 13px; font-weight: 600;
    color: var(--primary); margin-top: 10px; display: block;
}

/* ========== RESULT AREA ========== */
.result-area {
    padding: 55px 35px; text-align: center;
}
.result-icon {
    font-size: 65px; margin-bottom: 18px;
    animation: popIn 0.4s ease;
}
.result-icon.success { color: var(--success); }
.result-icon.error { color: var(--danger); }

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.result-area h2 {
    font-size: 24px; font-weight: 800; margin-bottom: 7px;
}
.result-area > p {
    color: var(--text-medium); font-size: 14px; margin-bottom: 22px;
}
.result-info {
    display: flex; justify-content: center;
    gap: 25px; padding: 16px 22px;
    border-radius: var(--radius-sm);
    margin-bottom: 22px; flex-wrap: wrap;
}
.result-info .info-item {
    display: flex; align-items: center;
    gap: 7px; font-size: 13px; color: var(--text-medium);
}
.result-info .info-item i { color: var(--primary); }

.download-btn {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white; border: none;
    padding: 15px 38px; border-radius: 50px;
    font-size: 17px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex; align-items: center; gap: 9px;
}
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34,197,94,0.35);
}

.result-actions {
    display: flex; justify-content: center;
    gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.btn-outline {
    padding: 9px 20px;
    border: 2px solid rgba(99,102,241,0.3);
    background: transparent; color: var(--primary);
    border-radius: 50px; font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex; align-items: center; gap: 5px;
}
.btn-outline:hover {
    background: var(--primary); color: white;
    border-color: var(--primary);
}

/* ========== SECTION HEADER ========== */
.section-header { text-align: center; margin-bottom: 25px; }
.section-header h2 {
    font-size: 26px; font-weight: 800; margin-bottom: 7px;
}
.section-header p { font-size: 13px; color: var(--text-medium); }

/* ========== RELATED TOOLS ========== */
.related-tools { padding: 45px 0; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
    gap: 10px;
}
.related-card {
    padding: 20px 12px; border-radius: var(--radius-sm);
    text-align: center; text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(31,38,135,0.13);
}
.related-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 17px; color: white; margin: 0 auto 10px;
}
.related-card h4 { font-size: 12px; font-weight: 600; }

/* ========== HOW TO SECTION ========== */
.how-to-section { padding: 45px 0; }
.steps-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}
.step-box {
    padding: 28px 18px; border-radius: var(--radius);
    text-align: center; position: relative;
}
.step-num {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px;
}
.step-box i {
    font-size: 28px; margin-bottom: 11px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.step-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.step-box p { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ========== FAQ ========== */
.faq-section { padding: 45px 0; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.faq-item:hover { box-shadow: 0 6px 20px rgba(31,38,135,0.1); }
.faq-question {
    display: flex; justify-content: space-between;
    align-items: center; padding: 16px 20px;
}
.faq-question h4 { font-size: 14px; font-weight: 600; }
.faq-question i {
    color: var(--primary); font-size: 13px;
    transition: transform 0.25s ease;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px; padding: 0 20px 16px;
}
.faq-answer p { font-size: 13px; color: var(--text-medium); line-height: 1.7; }

/* ========== FOOTER ========== */
.footer {
    background: rgba(15,23,42,0.95);
    padding: 28px 0; margin-top: 35px;
}
.footer-simple {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-logo {
    font-size: 19px; font-weight: 800;
    color: white; display: flex;
    align-items: center; gap: 7px;
}
.footer-logo i { color: var(--accent); }
.footer-logo span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-simple > p { color: #64748b; font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
    color: #94a3b8; text-decoration: none;
    font-size: 12px; transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }

/* ========== IMAGE PREVIEW GRID ========== */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
    gap: 10px; margin-bottom: 18px;
}
.image-preview-item {
    position: relative; border-radius: var(--radius-sm);
    overflow: hidden; aspect-ratio: 1;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: var(--danger); color: white;
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.15s ease;
}
.image-preview-item:hover .remove-img { opacity: 1; }

/* ========== EDITOR ========== */
.editor-canvas {
    width: 100%; min-height: 450px;
    background: white; border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative; overflow: hidden;
}
.editor-toolbar {
    display: flex; flex-wrap: wrap;
    gap: 6px; padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.toolbar-btn {
    padding: 7px 12px; border: none;
    background: rgba(255,255,255,0.4);
    border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: var(--text-medium);
    transition: background 0.15s ease, color 0.15s ease;
    display: flex; align-items: center; gap: 5px;
}
.toolbar-btn:hover, .toolbar-btn.active {
    background: var(--primary); color: white;
}

/* ========== COMPARE ========== */
.compare-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; padding: 20px;
}
.compare-side {
    border: 2px dashed rgba(99,102,241,0.3);
    border-radius: var(--radius-sm);
    padding: 35px 18px; text-align: center;
    min-height: 180px;
    display: flex; align-items: center;
    justify-content: center;
    flex-direction: column; cursor: pointer;
    transition: border-color 0.2s ease;
}
.compare-side:hover { border-color: var(--primary); }
.compare-side i { font-size: 32px; margin-bottom: 8px; color: var(--text-light); }
.compare-side h4 { font-size: 14px; margin-bottom: 4px; }
.compare-side p { font-size: 11px; color: var(--text-light); }

/* ========== URL INPUT ========== */
.url-input-group {
    display: flex; gap: 10px; padding: 20px; margin: 20px;
}
.url-input-group input {
    flex: 1; padding: 13px 18px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    background: rgba(255,255,255,0.4);
    font-size: 14px; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.url-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.url-input-group button {
    padding: 13px 26px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; border: none;
    border-radius: 50px; font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}
.url-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

/* ========== PASSWORD ========== */
.password-input-wrap {
    position: relative; max-width: 400px; margin: 0 auto 18px;
}
.password-input-wrap input {
    width: 100%; padding: 13px 48px 13px 18px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    background: rgba(255,255,255,0.4);
    font-size: 15px; outline: none;
    transition: border-color 0.2s ease;
}
.password-input-wrap input:focus { border-color: var(--primary); }
.password-toggle {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-light); cursor: pointer; font-size: 17px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .hamburger { display: flex; }

    .nav-links {
        display: none; position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center; align-items: center;
        gap: 22px; z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 17px; }

    .tool-title { flex-direction: column; text-align: center; }
    .tool-title h1 { font-size: 22px; }
    .tool-title p { font-size: 12px; }

    .upload-zone { padding: 35px 18px; margin: 12px; }
    .upload-zone .upload-icon { font-size: 42px; }
    .upload-zone h2 { font-size: 19px; }
    .upload-hints { flex-direction: column; gap: 6px; align-items: center; }

    .files-area { padding: 16px; }
    .files-header { flex-direction: column; align-items: flex-start; }

    .file-item { padding: 10px 12px; gap: 10px; }
    .file-details h4 { font-size: 12px; }

    .options-row { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; gap: 22px; }

    .related-grid { grid-template-columns: repeat(3,1fr); }

    .compare-container { grid-template-columns: 1fr; }
    .url-input-group { flex-direction: column; margin: 12px; padding: 15px; }

    .result-info { flex-direction: column; gap: 10px; }
    .result-actions { flex-direction: column; align-items: center; }

    .footer-simple { flex-direction: column; text-align: center; }

    .editor-toolbar { gap: 4px; }
    .toolbar-btn { padding: 6px 9px; font-size: 11px; }

    .processing-area { padding: 50px 20px; }
    .result-area { padding: 45px 20px; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: repeat(2,1fr); }
    .upload-zone { padding: 28px 14px; margin: 8px; }
    .image-preview-grid { grid-template-columns: repeat(3,1fr); }
    .radio-group, .checkbox-group { gap: 6px; }
    .radio-option, .checkbox-option { padding: 7px 12px; font-size: 11px; }
    .step-box { padding: 22px 14px; }
    .section-header h2 { font-size: 22px; }
}