/* ==========================================================================
   ARTISTIC QR CODE GENERATOR - TOOL SPECIFIC STYLES
   ========================================================================== */

/* ---------- Text Gradient (Purple) ---------- */
.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ---------- Tool Container ---------- */
.tool-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}
.back-link:hover { color: var(--accent-purple); transform: translateX(-4px); }
.back-link svg { width: 18px; height: 18px; fill: currentColor; transform: rotate(180deg); }

.tool-page-header { margin-bottom: 2rem; }
.tool-page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.tool-page-header > p { color: var(--text-secondary); font-size: 1rem; max-width: 700px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid;
}

/* ---------- Grid Layout ---------- */
.tool-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .tool-grid-layout { grid-template-columns: 1fr; }
    .tool-container { padding: calc(var(--nav-height) + 1.5rem) 1rem 2rem; }
    .tool-page-header h1 { font-size: 1.6rem; }
}

/* ---------- Panels ---------- */
.tool-panel {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

@media (max-width: 992px) {
    .tool-panel { display: none; }
    .tool-panel.active-panel { display: block; }
}

.panel-header {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.panel-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.panel-title svg { width: 20px; height: 20px; color: var(--accent-purple); }

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

/* ---------- Mobile Tabs ---------- */
.mobile-tabs-container {
    display: none;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 992px) { .mobile-tabs-container { display: flex; } }

.mobile-tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s, color 0.2s;
}
.mobile-tab-btn.active { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.mobile-tab-btn:hover { color: var(--text-primary); }

/* ---------- Form Controls ---------- */
.form-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: #e2e8f0;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.2rem;
}
.form-select:focus { border-color: var(--accent-purple); }

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: #e2e8f0;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--accent-purple); }

/* ---------- Color Input ---------- */
.color-input {
    width: 100%;
    height: 43px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: transparent;
    cursor: pointer;
    padding: 3px;
}

/* ---------- Range Slider ---------- */
.range-slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.range-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    border: 2px solid white;
}
.range-val {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-purple);
    min-width: 55px;
    text-align: right;
}

/* ---------- Settings ---------- */
.settings-group { margin-bottom: 1.25rem; }
.settings-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.settings-title svg { color: var(--accent-purple); }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--accent-purple);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.action-btn-sm {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}
.action-btn-sm:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

/* ---------- QR Preview ---------- */
.qr-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.qr-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.qr-preview-wrapper canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}
.qr-placeholder svg { opacity: 0.3; }
.qr-placeholder p { font-size: 0.88rem; }

/* ---------- Logo Upload ---------- */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.footer-brand-icon { width: 28px; height: 28px; }
.footer-brand-icon img { width: 100%; height: 100%; border-radius: 8px; }
.footer-copyright { color: var(--text-muted); font-size: 0.82rem; }