/* Base64 File Converter Modern Styles */

.base64-file_mainCard__sZY_x {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.base64-file_mainCard__sZY_x:hover {
    border-color: rgba(14, 165, 234, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.1);
}

[data-theme="light"] .base64-file_mainCard__sZY_x {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .base64-file_mainCard__sZY_x:hover {
    border-color: rgba(14, 165, 234, 0.3);
    box-shadow: 0 8px 32px rgba(14, 165, 234, 0.08);
}

/* Grid Layout */
.base64-file_grid__V1_fm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Section Styles */
.base64-file_section__g2Mj9 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.base64-file_sectionHeader__YS1vx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.base64-file_labelWrapper__vqY8C {
    display: flex;
    align-items: center;
    gap: 12px;
}

.base64-file_labelIcon__GJcTU {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 234, 0.3));
}

.base64-file_label__BKZoo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

[data-theme="light"] .base64-file_label__BKZoo {
    color: var(--text-primary, #334155);
}

/* Textarea Wrapper */
.base64-file_textareaWrapper__X52ae {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.base64-file_textarea__9sHvi {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    outline: none;
    word-break: break-all;
}

.base64-file_textarea__9sHvi:focus {
    border-color: rgba(14, 165, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 234, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.base64-file_textarea__9sHvi::placeholder {
    color: var(--text-secondary, #64748b);
}

[data-theme="light"] .base64-file_textarea__9sHvi {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #1e293b);
}

[data-theme="light"] .base64-file_textarea__9sHvi:focus {
    border-color: rgba(14, 165, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 234, 0.08);
    background: #ffffff;
}

/* Clear Button */
.base64-file_clearButton__V7tVA {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.base64-file_clearButton__V7tVA:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.05);
}

.base64-file_clearButton__V7tVA:active {
    transform: scale(0.95);
}

/* File Upload Area */
.base64-file_uploadArea__Hsitu {
    position: relative;
    min-height: 320px;
    padding: 32px;
    background: rgba(15, 23, 42, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.base64-file_uploadArea__Hsitu:hover {
    border-color: rgba(14, 165, 234, 0.5);
    background: rgba(15, 23, 42, 0.6);
}

.base64-file_uploadArea__Hsitu.base64-file_dragOver__B8GyP {
    border-color: rgba(14, 165, 234, 0.8);
    background: rgba(14, 165, 234, 0.1);
}

[data-theme="light"] .base64-file_uploadArea__Hsitu {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .base64-file_uploadArea__Hsitu:hover {
    border-color: rgba(14, 165, 234, 0.5);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .base64-file_uploadArea__Hsitu.base64-file_dragOver__B8GyP {
    border-color: rgba(14, 165, 234, 0.8);
    background: rgba(14, 165, 234, 0.05);
}

.base64-file_uploadIcon___D65u {
    font-size: 4rem;
    opacity: 0.6;
}

.base64-file_uploadText__VWLui {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    text-align: center;
}

[data-theme="light"] .base64-file_uploadText__VWLui {
    color: var(--text-primary, #334155);
}

.base64-file_uploadHint__V78di {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
}

.base64-file_fileInput__goUaM {
    display: none;
}

/* File Info */
.base64-file_fileInfo__V0WEn {
    padding: 16px;
    background: rgba(14, 165, 234, 0.05);
    border: 1px solid rgba(14, 165, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="light"] .base64-file_fileInfo__V0WEn {
    background: rgba(14, 165, 234, 0.03);
    border-color: rgba(14, 165, 234, 0.15);
}

.base64-file_fileIcon__HeEHV {
    font-size: 2rem;
}

.base64-file_fileDetails__bWi35 {
    flex: 1;
}

.base64-file_fileName__IQLMW {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 4px;
}

[data-theme="light"] .base64-file_fileName__IQLMW {
    color: var(--text-primary, #1e293b);
}

.base64-file_fileSize__Tzo6f {
    font-size: 0.875rem;
    color: var(--text-secondary, #94a3b8);
}

.base64-file_removeFileBtn__d_h5W {
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.base64-file_removeFileBtn__d_h5W:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Button Group */
.base64-file_buttonGroup__QWMgk {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.base64-file_button__7WC5r {
    padding: 12px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.base64-file_button__7WC5r::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.base64-file_button__7WC5r:hover::before {
    width: 300px;
    height: 300px;
}

.base64-file_button__7WC5r:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.base64-file_button__7WC5r:disabled:hover {
    transform: none;
}

.base64-file_buttonPrimary__if1lU {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 234, 0.3);
}

.base64-file_buttonPrimary__if1lU:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(14, 165, 234, 0.4);
    transform: translateY(-2px);
}

.base64-file_buttonSecondary__h6XzH {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #e2e8f0);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.base64-file_buttonSecondary__h6XzH:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .base64-file_buttonSecondary__h6XzH {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary, #1e293b);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .base64-file_buttonSecondary__h6XzH:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.base64-file_button__7WC5r:active:not(:disabled) {
    transform: translateY(0);
}

/* Status Badge */
.base64-file_statusBadge__IotIQ {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 500;
}

.base64-file_statusBadge__IotIQ.base64-file_error__eK8f8 {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {
    .base64-file_grid__V1_fm {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .base64-file_mainCard__sZY_x {
        padding: 24px 20px;
    }

    .base64-file_textarea__9sHvi {
        min-height: 240px;
    }

    .base64-file_uploadArea__Hsitu {
        min-height: 240px;
        padding: 24px;
    }

    .base64-file_buttonGroup__QWMgk {
        flex-direction: column;
    }

    .base64-file_button__7WC5r {
        width: 100%;
        justify-content: center;
    }
}

