/* Base Styles */
.base32-decoder-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Hero Section */
.base32-decoder-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.base32-decoder-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.base32-decoder-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.base32-decoder-hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.base32-decoder-shape-1 {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.base32-decoder-shape-2 {
    position: absolute;
    bottom: -80px;
    right: 20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Tool Section */
.base32-decoder-tool {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .base32-decoder-tool {
        grid-template-columns: 1fr 1fr;
    }
}

.base32-decoder-input-section,
.base32-decoder-output-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.base32-decoder-input-header,
.base32-decoder-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.base32-decoder-input-header h2,
.base32-decoder-output-header h2 {
    font-size: 1.3rem;
    color: #444;
    margin: 0;
}

.base32-decoder-sample-btn {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.base32-decoder-sample-btn:hover {
    background: #e0e0e0;
}

.base32-decoder-input,
.base32-decoder-output {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    resize: vertical;
    background: #f9f9f9;
}

.base32-decoder-output {
    background: #f5f5f5;
}

.base32-decoder-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.base32-decoder-clear-btn,
.base32-decoder-decode-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.base32-decoder-clear-btn {
    background: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
}

.base32-decoder-clear-btn:hover {
    background: #e9ecef;
}

.base32-decoder-decode-btn {
    background: #4e73df;
    color: white;
}

.base32-decoder-decode-btn:hover {
    background: #3a5ec0;
}

.base32-decoder-output-actions {
    display: flex;
    gap: 0.5rem;
}

.base32-decoder-copy-btn,
.base32-decoder-download-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.base32-decoder-copy-btn {
    background: #28a745;
    color: white;
}

.base32-decoder-copy-btn:hover {
    background: #218838;
}

.base32-decoder-download-btn {
    background: #17a2b8;
    color: white;
}

.base32-decoder-download-btn:hover {
    background: #138496;
}

.base32-decoder-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

/* Info Boxes */
.base32-decoder-info-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .base32-decoder-info-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.base32-decoder-info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.base32-decoder-info-box:hover {
    transform: translateY(-5px);
}

.base32-decoder-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4e73df;
}

.base32-decoder-info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.base32-decoder-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section */
.base32-decoder-content {
    margin-bottom: 3rem;
}

.base32-decoder-content-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.base32-decoder-content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 3px;
}

.base32-decoder-content-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.base32-decoder-feature-highlight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.base32-decoder-feature-highlight h3 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 1rem;
}

.base32-decoder-feature-highlight ul {
    list-style-type: none;
    padding-left: 0;
}

.base32-decoder-feature-highlight li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.8rem;
    line-height: 1.6;
}

.base32-decoder-feature-highlight li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.base32-decoder-use-cases {
    margin-top: 2rem;
}

.base32-decoder-use-cases h3 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.base32-decoder-use-case-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.base32-decoder-use-case-card h4 {
    font-size: 1.1rem;
    color: #4e73df;
    margin-bottom: 0.8rem;
}

.base32-decoder-use-case-card p {
    color: #555;
    line-height: 1.6;
}

/* FAQ Section */
.base32-decoder-faq {
    margin-bottom: 3rem;
}

.base32-decoder-faq-title {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.base32-decoder-faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 3px;
}

.base32-decoder-faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.base32-decoder-faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: #f8f9fa;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.base32-decoder-faq-question:hover {
    background: #e9ecef;
}

.base32-decoder-faq-icon {
    font-size: 1.2rem;
}

.base32-decoder-faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.base32-decoder-faq-answer p {
    color: #555;
    line-height: 1.7;
    padding: 1rem 0;
}

.base32-decoder-faq-item.active .base32-decoder-faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .base32-decoder-hero-content h1 {
        font-size: 2rem;
    }
    
    .base32-decoder-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .base32-decoder-input-header,
    .base32-decoder-output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}