/* Base64 Encoder Tool Styles - Orange Theme (#FF6B35) */

/* Reset for our tool only */
.base64-encoder-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tool Description Section - Orange Theme */
.tool-description-section {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
    color: white;
    padding: 50px 0 30px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.tool-description-section .base64-encoder-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.tool-main-title {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tool-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Start Converting CTA */
.start-converting-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 30px 0 25px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-icon {
    font-size: 2rem;
    color: #4cd964;
    animation: bounce 2s infinite;
    margin-bottom: 5px;
}

.cta-text {
    font-size: 1.4rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.cta-text:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Main Container */
.base64-encoder-container {
    background-color: #f8fafc;
    padding: 30px 0 50px;
    width: 100%;
    min-height: 100vh;
}

.base64-encoder-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout */
.tool-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 30px;
}

.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: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 100%;
    border: 1px solid #eef2f7;
}

.input-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mode Selector */
.mode-selector-container {
    margin-bottom: 30px;
}

.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #eef2f7;
}

.mode-btn {
    padding: 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.mode-btn:hover {
    border-color: #FF8E53;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.mode-btn.active {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 142, 83, 0.1));
    position: relative;
}

.mode-btn.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #FF6B35;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.mode-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

.mode-description {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
}

/* Input/Output Container */
.input-output-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin: 25px 0;
    align-items: start;
}

.input-area,
.output-area {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #eef2f7;
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.area-header label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.char-count {
    font-size: 0.9rem;
    color: #64748b;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

#base64Input,
#base64Output {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: white;
    resize: vertical;
    transition: border 0.3s;
}

#base64Input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#base64Output {
    background: #f8fafc;
    color: #334155;
}

/* Conversion Controls */
.conversion-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.swap-btn {
    background: white;
    border: 2px solid #FF6B35;
    border-radius: 50px;
    width: 100px;
    height: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FF6B35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.swap-btn:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.swap-icon {
    font-size: 1.2rem;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #FF6B35, #FF8E53);
}

.arrow-icon {
    font-size: 1.8rem;
    color: #FF6B35;
    animation: slide 2s infinite;
}

/* Advanced Options */
.advanced-options {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 2px solid #eef2f7;
}

.options-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.option-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.option-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.option-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #FF6B35;
}

.option-text {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.option-hint {
    font-size: 0.85rem;
    color: #64748b;
}

.option-select {
    margin-top: 8px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
}

.option-select:focus {
    outline: none;
    border-color: #FF6B35;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e40af;
    animation: fadeIn 0.5s ease;
}

.privacy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-text {
    line-height: 1.5;
    font-weight: 500;
}

/* Tool Controls */
.text-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed #e2e8f0;
}

.file-info {
    font-size: 0.9rem;
    color: #64748b;
    flex: 1;
}

.base64-encoder-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.base64-encoder-buttons .btn {
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    text-align: center;
    height: 56px;
}

.btn-icon {
    font-size: 1.2rem;
}

.base64-encoder-buttons .btn-primary {
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.base64-encoder-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #FF5A1F, #FF7A42);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.base64-encoder-buttons .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.base64-encoder-buttons .btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.base64-encoder-buttons .btn-clear {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.base64-encoder-buttons .btn-clear:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Loading Indicator */
.base64-encoder-loading {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #eef2f7;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.base64-encoder-loading p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ad-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ad-unit {
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.ad-bottom {
    margin: 40px 0;
}

.ad-middle {
    margin: 50px 0;
}

.ad-top-sidebar {
    margin-top: 0;
}

/* Hide mobile ads on desktop */
@media (min-width: 769px) {
    .ad-mobile {
        display: none !important;
    }
}

/* Show mobile ads on mobile */
@media (max-width: 768px) {
    .ad-desktop {
        display: none !important;
    }
    .ad-container {
        margin: 20px 0;
        padding: 15px;
    }
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.widget-icon {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-list, .tools-list, .stats-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tools-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-list a::before {
    content: '→';
    color: #FF6B35;
    font-weight: bold;
}

.tools-list a:hover {
    color: #FF6B35;
    padding-left: 5px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #64748b;
    font-size: 0.95rem;
}

.stat-value {
    color: #FF6B35;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Tool Description Content */
.tool-description-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
    margin-top: 20px;
}

.tool-description-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.tool-description-content .tool-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 25px;
}

/* Tool Features */
.tool-features {
    margin: 40px 0;
}

.tool-features h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #eef2f7;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.feature-item-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-item-content h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-item-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* How to Use Section */
.how-to-use-section {
    margin: 50px 0 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f4f8;
}

.how-to-use-section h2 {
    color: #2c3e50;
    margin-bottom: 35px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid #eef2f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.step-content h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    padding-right: 50px;
}

.step-content p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.related-tools-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #eef2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.tool-card-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    height: 80px;
    width: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 142, 83, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.tool-card-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.tool-card-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1rem;
}

.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.tool-card-link {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tool-card-link:hover {
    background: linear-gradient(135deg, #FF5A1F, #FF7A42);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin-top: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f7;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid #eef2f7;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #FF6B35;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.05);
}

.faq-question-text {
    flex: 1;
    text-align: left;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #FF6B35;
    transition: transform 0.3s ease;
    margin-left: 20px;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
    background: #FF6B35;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-question.active + .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.faq-answer-content {
    padding: 0 30px 30px;
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.faq-answer-content code {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background-color: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 0.95rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #FF6B35;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 0 2px;
}

.breadcrumb-icon {
    font-size: 1rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes slide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@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;
    }
    
    .sticky-ad {
        position: static;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .tool-main-title {
        font-size: 2.5rem;
    }
    
    .input-output-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .conversion-controls {
        flex-direction: row;
        justify-content: center;
        margin: 10px 0;
    }
    
    .arrow-container {
        flex-direction: row;
        height: auto;
    }
    
    .arrow-line {
        width: 40px;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .tool-description-section {
        padding: 40px 0 25px;
    }
    
    .tool-main-title {
        font-size: 2rem;
    }
    
    .tool-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
    
    .input-section,
    .tool-description-content,
    .related-tools-section,
    .faq-section {
        padding: 25px 20px;
    }
    
    .input-section h2,
    .tool-description-content h2,
    .related-tools-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .mode-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px;
    }
    
    .sidebar-area {
        grid-template-columns: 1fr;
    }
    
    #base64Input,
    #base64Output {
        min-height: 180px;
        font-size: 14px;
    }
    
    .base64-encoder-buttons {
        grid-template-columns: 1fr;
    }
    
    .base64-encoder-buttons .btn {
        height: 52px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .tool-main-title {
        font-size: 1.7rem;
    }
    
    .tool-subtitle {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .input-section,
    .tool-description-content {
        padding: 20px 15px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-item-icon {
        margin: 0 auto;
    }
    
    .tool-card {
        padding: 25px 20px;
    }
    
    .faq-question {
        padding: 18px;
        font-size: 0.95rem;
    }
    
    .breadcrumb-container {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .base64-encoder-container,
    .input-section,
    .sidebar-widget,
    .tool-description-content,
    .related-tools-section,
    .faq-section,
    .ad-container {
        background-color: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
    
    .input-section h2,
    .sidebar-widget h3,
    .tool-description-content h2,
    .related-tools-section h2,
    .faq-section h2,
    .tool-card-title,
    .step-content h3,
    .feature-item-content h4 {
        color: #e2e8f0;
    }
    
    .tool-description-content p,
    .step-content p,
    .tool-card-desc,
    .faq-answer-content {
        color: #94a3b8;
    }
    
    .input-area,
    .output-area,
    .advanced-options,
    .file-upload {
        background-color: #0f172a;
        border-color: #334155;
    }
    
    #base64Input,
    #base64Output {
        background-color: #0f172a;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .mode-btn {
        background-color: #0f172a;
        border-color: #475569;
    }
    
    .tips-list li,
    .tools-list a {
        color: #94a3b8;
    }
    
    .stat-label {
        color: #94a3b8;
    }
}