/**
 * Base64 Converter Styles
 * Base64 변환기 전용 스타일
 *
 * @package Zipper
 */

/* 변환 모드 탭 */
.converter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.converter-tab {
    flex: 1;
    padding: 12px 20px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.converter-tab:hover {
    background: #f5f3f0;
    border-color: #d4af37;
}

.converter-tab.active {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-color: #d4af37;
    color: #fff;
}

.converter-tab i {
    font-size: 16px;
}

/* 입출력 영역 */
.converter-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.converter-panel {
    display: flex;
    flex-direction: column;
}

.converter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.converter-panel-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
}

.converter-panel-actions {
    display: flex;
    gap: 8px;
}

.panel-action-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    font-size: 13px;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.panel-action-btn:hover {
    background: #faf9f7;
    border-color: #d4af37;
    color: #d4af37;
}

.panel-action-btn i {
    font-size: 14px;
}

.converter-textarea {
    width: 100%;
    height: 200px;
    padding: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #2d2a26;
    background: #faf9f7;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.converter-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.converter-textarea::placeholder {
    color: #8c8579;
}

.converter-textarea[readonly] {
    background: #fff;
    cursor: default;
}

/* 변환 화살표 */
.converter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.converter-arrow i {
    font-size: 24px;
    color: #d4af37;
}

/* 파일 업로드 영역 */
.file-upload-section {
    margin-bottom: 20px;
    display: none;
}

.file-upload-section.active {
    display: block;
}

.file-drop-zone {
    border: 2px dashed #e8e4dc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf9f7;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.file-drop-zone i {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 16px;
}

.file-drop-zone p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2d2a26;
}

.file-drop-zone span {
    font-size: 13px;
    color: #5f5a56;
}

.file-input {
    display: none;
}

/* 파일 정보 */
.file-info {
    display: none;
    padding: 16px;
    background: #faf9f7;
    border-radius: 10px;
    margin-top: 16px;
}

.file-info.active {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info-icon i {
    font-size: 24px;
    color: #d4af37;
}

.file-info-details {
    flex: 1;
}

.file-info-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-info-size {
    font-size: 13px;
    color: #5f5a56;
}

.file-info-remove {
    padding: 8px;
    background: transparent;
    border: none;
    color: #dc3232;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.file-info-remove:hover {
    background: rgba(220, 50, 50, 0.1);
}

/* 결과 통계 */
.converter-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: #faf9f7;
    border-radius: 10px;
}

.converter-stat {
    flex: 1;
    text-align: center;
}

.converter-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
}

.converter-stat-label {
    font-size: 13px;
    color: #5f5a56;
}

/* 옵션 토글 */
.converter-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: #faf9f7;
    border-radius: 10px;
}

.converter-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.converter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

.converter-option label {
    font-size: 14px;
    color: #2d2a26;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-tabs {
        flex-direction: column;
    }

    .converter-area {
        grid-template-columns: 1fr;
    }

    .converter-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .converter-stats {
        flex-wrap: wrap;
    }

    .converter-stat {
        min-width: calc(50% - 8px);
    }

    .converter-options {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .converter-textarea {
        height: 150px;
        font-size: 13px;
    }

    .file-drop-zone {
        padding: 30px 16px;
    }

    .file-drop-zone i {
        font-size: 36px;
    }
}
