/* QR Code Generator Styles */
/* Theme Color: Green (#4CAF50) */

/* Reset for our tool only */
.qr-code-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tool Description Section - Header Only */
.tool-description-section {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 40px 0 20px;
    margin-bottom: 0;
}

.tool-description-section .qr-code-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.tool-main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
}

.tool-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
}

/* Main Container */
.qr-code-container {
    background-color: #f5f7fa;
    padding: 20px 0 40px;
    width: 100%;
}

.qr-code-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout - Tool and Sidebar */
.tool-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 20px;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Input Section */
.input-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 100%;
}

.input-section h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tabs */
.qr-input-tabs {
    margin-bottom: 25px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
}

.tab-button {
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #e8e8e8;
}

.tab-button.active {
    background: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Textarea */
#qrTextInput {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    line-height: 1.6;
    margin-bottom: 20px;
}

#qrTextInput:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
}

.form-grid textarea {
    grid-column: 1 / -1;
    min-height: 80px;
    resize: vertical;
}

/* Customization Section */
.customization-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 5px solid #4CAF50;
}

.customization-section h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.customization-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customization-item label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.customization-item input[type="range"] {
    width: 100%;
}

.customization-item input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Control Buttons */
.qr-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.qr-controls .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #34495e;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
}

.btn-clear:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Preview Section */
.preview-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    width: 100%;
}

.preview-section h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-preview-container {
    text-align: center;
    margin-bottom: 30px;
}

.qr-code-display {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}

.qr-code-display canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.placeholder-text {
    color: #999;
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

.preview-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* QR Code Details */
.qr-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.qr-details h3 {
    color: #4CAF50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 12px 15px;
    background-color: #f0f9ff;
    border: 1px solid #b3e0ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0066cc;
}

.privacy-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Loading Spinner */
.qr-loading {
    display: none;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ad Container Styles */
.ad-container {
    margin: 25px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eaeaea;
}

.ad-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide/show ads for different devices */
@media (min-width: 769px) {
    .ad-mobile { display: none !important; }
}

@media (max-width: 768px) {
    .ad-desktop { display: none !important; }
    .ad-container { margin: 20px 0; padding: 12px; }
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list, .tools-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 0.9rem;
}

.tools-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tools-list a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.tools-list a:hover {
    color: #3d8b40;
    text-decoration: underline;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-tools-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.faq-question:hover {
    color: #4CAF50;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #4CAF50;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
    visibility: hidden;
}

.faq-question.active + .faq-answer {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease 0.1s, visibility 0.3s ease 0.1s;
}

.faq-answer p {
    padding: 0 0 20px 0;
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-layout { flex-direction: column; }
    .sidebar-area {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        order: 2;
    }
    .sticky-ad { position: static; }
    .main-content-area { order: 1; }
    .tool-main-title { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .tool-description-section { padding: 30px 0 15px; }
    .tool-main-title { font-size: 1.8rem; }
    .tool-subtitle { font-size: 1rem; }
    .tab-buttons { flex-direction: column; }
    .tab-button { width: 100%; }
    .customization-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
    .qr-controls { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .sidebar-area { grid-template-columns: 1fr; }
    .qr-code-display { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .tool-main-title { font-size: 1.6rem; }
    .qr-code-display { width: 180px; height: 180px; }
}

/* CTA Animation */
.start-generating-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 10px 0 25px 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-icon {
    font-size: 1.5rem;
    color: #4cd964;
    animation: bounce 2s infinite;
}

.cta-text {
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo Upload Section */
.logo-upload-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
}

.logo-upload-section h4 {
    color: #4CAF50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.logo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
    margin: 0 auto;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
}

.logo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.logo-size-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
}

.logo-size-control label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.logo-size-control input[type="range"] {
    width: 100px;
}

#logoSizeValue {
    min-width: 40px;
    font-weight: 600;
    color: #4CAF50;
}

.logo-note {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

/* Key Features Section */
.tool-features-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tool-features-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
    background: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* How to Use Section */
.how-to-use-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.how-to-use-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.step-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-tools-section h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tool-card-icon {
    font-size: 2.5rem;
}

.tool-card-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tool-card-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tool-card-desc {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 0.95rem;
    margin-top: auto;
}

.tool-card-link:hover {
    background: #3d8b40;
    color: white;
}

.link-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.tool-card-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Ad Container Styles */
.ad-below-tool {
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.ad-howto-middle {
    margin: 40px 0;
}

/* Sidebar Ads */
.ad-sidebar-top,
.ad-sidebar-middle,
.ad-sidebar-bottom {
    margin: 0 0 25px 0;
    padding: 15px;
}

.ad-sidebar-middle {
    margin: 25px 0;
}

/* Hide/Show ads for different devices */
.ad-tablet {
    display: none !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .ad-tablet {
        display: inline-block !important;
    }
    .ad-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ad-desktop,
    .ad-tablet {
        display: none !important;
    }
    .ad-mobile {
        display: inline-block !important;
    }
}

/* Sidebar Widget Updates */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tools-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.tools-list a:hover {
    color: #3d8b40;
    text-decoration: underline;
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .tool-layout {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        order: 2;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .features-grid,
    .step-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .logo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-size-control {
        justify-content: space-between;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .ad-below-tool,
    .ad-howto-middle {
        margin: 30px 0;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 15px;
    }
}

/* Single Line Breadcrumb */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb-inline {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 5px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4CAF50;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    text-decoration: underline;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: #7f8c8d;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-size: 0.8rem;
    padding: 0 2px;
}

.breadcrumb-icon {
    font-size: 0.9rem;
}

/* Hide scrollbar for breadcrumb */
.breadcrumb-inline::-webkit-scrollbar {
    display: none;
}

.breadcrumb-inline {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Checkbox Group Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

/* Customization Grid Update */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.customization-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customization-item label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.customization-item input[type="range"] {
    width: 100%;
}

.customization-item input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    align-self: flex-start;
}

.customization-item select {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Preview Options Update */
.preview-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* SVG Download Button */
#downloadSvgBtn {
    background-color: #9C27B0;
    color: white;
}

#downloadSvgBtn:hover {
    background-color: #7B1FA2;
}

/* Responsive Design for Breadcrumb */
@media (max-width: 767px) {
    .breadcrumb-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 3px 6px;
    }
    
    .breadcrumb-icon {
        font-size: 0.85rem;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-inline {
        font-size: 0.8rem;
    }
    
    .preview-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .preview-options .btn {
        width: 100%;
    }
}