/* Base64 Specific Styles */

.base64_mainCard__D_ph3 {
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid rgba(14, 165, 234, 0.15);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.base64_mainCard__D_ph3:hover {
    border-color: rgba(14, 165, 234, 0.25);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.1);
}

/* Input Section */
.base64_inputSection__Sg0Zn {
    margin-bottom: 32px;
}

.base64_sectionHeader__eN5HK {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.base64_labelWrapper__AMLts {
    display: flex;
    align-items: center;
    gap: 10px;
}

.base64_labelIcon___XMo4 {
    font-size: 22px;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 234, 0.4));
}

.base64_label__Kb6Uf {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.base64_charCount__lCsZK {
    font-size: 0.8125rem;
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(14, 165, 234, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(14, 165, 234, 0.2);
    transition: all 0.2s ease;
}

.base64_charCount__lCsZK:hover {
    background: rgba(14, 165, 234, 0.15);
    border-color: rgba(14, 165, 234, 0.3);
}

.base64_textareaWrapper__WGkBP {
    position: relative;
}

.base64_textarea__xZfhx {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    padding-right: 50px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(14, 165, 234, 0.2);
    border-radius: 16px;
    color: var(--text-primary, #e2e8f0);
    font-size: 1rem;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.base64_textarea__xZfhx:focus {
    border-color: rgba(14, 165, 234, 0.6);
    box-shadow: 0 0 0 4px rgba(14, 165, 234, 0.12),
                0 8px 24px rgba(14, 165, 234, 0.2);
    background: rgba(15, 23, 42, 0.7);
    transform: translateY(-2px);
}

.base64_textarea__xZfhx::placeholder {
    color: rgba(148, 163, 184, 0.4);
    font-style: italic;
}

.base64_clearButton___rDiY {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.base64_clearButton___rDiY:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.base64_clearButton___rDiY:active {
    transform: scale(0.95) rotate(90deg);
}

/* Action Grid */
.base64_actionGrid__NtSzR {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.base64_actionCard__Igrj7 {
    position: relative;
    padding: 32px 28px;
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid rgba(14, 165, 234, 0.2);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.base64_actionCard__Igrj7::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.base64_actionCard__Igrj7:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(14, 165, 234, 0.6);
    box-shadow: 0 12px 40px rgba(14, 165, 234, 0.25),
                0 0 0 1px rgba(14, 165, 234, 0.3);
}

.base64_actionCard__Igrj7:hover::before {
    opacity: 1;
}

.base64_actionCard__Igrj7:active {
    transform: translateY(-3px) scale(0.98);
}

.base64_actionIcon__aAItZ {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(14, 165, 234, 0.3));
    position: relative;
    z-index: 1;
}

.base64_actionCard__Igrj7:hover .base64_actionIcon__aAItZ {
    transform: scale(1.15) rotate(-5deg);
}

.base64_actionTitle__jKOnZ {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.base64_actionDesc__OhthJ {
    font-size: 0.9375rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.5;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.base64_actionArrow__buLIE {
    font-size: 24px;
    color: #0ea5e9;
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.base64_actionCard__Igrj7:hover .base64_actionArrow__buLIE {
    transform: translateX(8px);
}

/* Result Section */
.base64_resultSection__ziO1n {
    padding-top: 32px;
    border-top: 1px solid rgba(14, 165, 234, 0.15);
    animation: base64_slideInUp__5BmIP 0.4s ease-out;
}

.base64_resultBox__CK99R {
    min-height: 150px;
    max-height: 400px;
    padding: 20px;
    background: rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.25);
    border-radius: 16px;
    color: var(--text-primary, #e2e8f0);
    font-size: 1rem;
    line-height: 1.8;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.base64_resultBox__CK99R:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15);
}

.base64_resultBox__CK99R::-webkit-scrollbar {
    width: 10px;
}

.base64_resultBox__CK99R::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.base64_resultBox__CK99R::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.4);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.base64_resultBox__CK99R::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.6);
    background-clip: padding-box;
}

/* Copy Button */
.base64_copyButton__dL4Vu {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    color: #06b6d4;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.base64_copyButton__dL4Vu:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.25);
}

.base64_copyButton__dL4Vu:active {
    transform: translateY(0);
}

/* Light Theme */
[data-theme="light"] .base64_mainCard__D_ph3 {
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(14, 165, 234, 0.12);
}

[data-theme="light"] .base64_mainCard__D_ph3:hover {
    border-color: rgba(14, 165, 234, 0.2);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.08);
}

[data-theme="light"] .base64_label__Kb6Uf {
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .base64_charCount__lCsZK {
    color: var(--text-secondary, #64748b);
    background: rgba(14, 165, 234, 0.08);
    border-color: rgba(14, 165, 234, 0.15);
}

[data-theme="light"] .base64_charCount__lCsZK:hover {
    background: rgba(14, 165, 234, 0.12);
    border-color: rgba(14, 165, 234, 0.25);
}

[data-theme="light"] .base64_textarea__xZfhx {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(14, 165, 234, 0.2);
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .base64_textarea__xZfhx:focus {
    border-color: rgba(14, 165, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(14, 165, 234, 0.08),
                0 8px 24px rgba(14, 165, 234, 0.15);
    background: #ffffff;
}

[data-theme="light"] .base64_textarea__xZfhx::placeholder {
    color: rgba(100, 116, 139, 0.4);
}

[data-theme="light"] .base64_clearButton___rDiY {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="light"] .base64_clearButton___rDiY:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="light"] .base64_actionCard__Igrj7 {
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    border-color: rgba(14, 165, 234, 0.15);
}

[data-theme="light"] .base64_actionCard__Igrj7::before {
    background: linear-gradient(135deg, rgba(14, 165, 234, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
}

[data-theme="light"] .base64_actionCard__Igrj7:hover {
    border-color: rgba(14, 165, 234, 0.4);
    box-shadow: 0 12px 40px rgba(14, 165, 234, 0.15),
                0 0 0 1px rgba(14, 165, 234, 0.2);
}

[data-theme="light"] .base64_actionTitle__jKOnZ {
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .base64_actionDesc__OhthJ {
    color: var(--text-secondary, #64748b);
}

[data-theme="light"] .base64_resultSection__ziO1n {
    border-top-color: rgba(14, 165, 234, 0.12);
}

[data-theme="light"] .base64_resultBox__CK99R {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .base64_resultBox__CK99R:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .base64_resultBox__CK99R::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .base64_resultBox__CK99R::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] .base64_resultBox__CK99R::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

[data-theme="light"] .base64_copyButton__dL4Vu {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.25);
}

[data-theme="light"] .base64_copyButton__dL4Vu:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .base64_mainCard__D_ph3 {
        padding: 24px;
        border-radius: 20px;
    }

    .base64_sectionHeader__eN5HK {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .base64_charCount__lCsZK {
        align-self: flex-end;
    }

    .base64_textarea__xZfhx {
        min-height: 160px;
        padding: 16px;
        padding-right: 50px;
        font-size: 0.9375rem;
    }

    .base64_actionGrid__NtSzR {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .base64_actionCard__Igrj7 {
        padding: 24px 20px;
    }

    .base64_actionIcon__aAItZ {
        font-size: 40px;
    }

    .base64_actionTitle__jKOnZ {
        font-size: 1.125rem;
    }

    .base64_resultBox__CK99R {
        min-height: 120px;
        padding: 16px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .base64_mainCard__D_ph3 {
        padding: 20px;
        border-radius: 18px;
    }

    .base64_labelIcon___XMo4 {
        font-size: 20px;
    }

    .base64_label__Kb6Uf {
        font-size: 0.9375rem;
    }

    .base64_charCount__lCsZK {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .base64_textarea__xZfhx {
        min-height: 140px;
        padding: 14px;
        padding-right: 46px;
        font-size: 0.875rem;
    }

    .base64_clearButton___rDiY {
        width: 28px;
        height: 28px;
        top: 14px;
        right: 14px;
    }

    .base64_clearButton___rDiY svg {
        width: 16px;
        height: 16px;
    }

    .base64_actionCard__Igrj7 {
        padding: 20px 16px;
    }

    .base64_actionIcon__aAItZ {
        font-size: 36px;
    }

    .base64_actionTitle__jKOnZ {
        font-size: 1rem;
    }

    .base64_actionDesc__OhthJ {
        font-size: 0.875rem;
    }

    .base64_resultBox__CK99R {
        min-height: 100px;
        padding: 14px;
        font-size: 0.875rem;
    }

    .base64_copyButton__dL4Vu {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
}

/* Animation */
@keyframes base64_slideInUp__5BmIP {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.base64_inputSection__Sg0Zn {
    animation: base64_slideInUp__5BmIP 0.5s ease-out 0.1s backwards;
}

.base64_actionCard__Igrj7:nth-child(1) {
    animation: base64_slideInUp__5BmIP 0.5s ease-out 0.2s backwards;
}

.base64_actionCard__Igrj7:nth-child(2) {
    animation: base64_slideInUp__5BmIP 0.5s ease-out 0.3s backwards;
}

