/* Base64 编解码工具的样式 */
.base64-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    position: relative;
    padding: 10px;
}

/* 顶部控制区样式 */
.base64-container .top-controls {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0 15px;
    height: 50px;
    box-shadow: 0 2px 8px var(--shadow-color);
    margin-bottom: 10px;
}

.base64-container .left-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.base64-container .right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.base64-container .main-actions {
    display: flex;
    gap: 10px;
}

.base64-container .main-actions .btn {
    padding: 6px 15px;
    font-weight: 500;
}

/* 垂直布局的输入输出区域 */
.base64-row {
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
    margin: 0;
    padding: 0;
    gap: 10px;
}

.base64-input-area {
    flex: 1;
    height: 50%;
    padding: 0;
}

.base64-output-area {
    flex: 1;
    height: 50%;
    padding: 0;
}

/* 编辑器样式覆盖 */
#base64-input, #base64-output {
    width: 100%;
    height: 100%;
    font-size: 14px;
}

/* Toast通知样式 */
#base64-toast {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    padding: 10px 15px;
    border-radius: 4px;
    background-color: var(--button-success);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#base64-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#base64-toast.error {
    background-color: var(--button-danger);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .base64-container .top-controls {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
    }
    
    .base64-container .left-controls,
    .base64-container .right-controls,
    .base64-container .main-actions {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }
    
    .base64-row {
        height: calc(100% - 100px);
    }
} 